summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar Julian-Samuel Gebühr <julian-samuel@gebuehr.net>2023-05-21 22:40:43 +0200
committerLibravatar GitHub <noreply@github.com>2023-05-21 22:40:43 +0200
commit9c24dee01fc88fc69d581951ef0b6266e301f326 (patch)
treed551e65614618ed09df8886df1b745850f8ab997 /internal
parent[bugfix] Add back removed ValidateRequest() before backoff-retry loop (#1805) (diff)
downloadgotosocial-9c24dee01fc88fc69d581951ef0b6266e301f326.tar.xz
[chore] Replace pinafore with semaphore (#1801)
* Replace pinafore with semaphore * Typo
Diffstat (limited to 'internal')
-rw-r--r--internal/api/client/streaming/streaming.go2
-rw-r--r--internal/middleware/cors.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/streaming/streaming.go b/internal/api/client/streaming/streaming.go
index 35f8a1aed..71b325089 100644
--- a/internal/api/client/streaming/streaming.go
+++ b/internal/api/client/streaming/streaming.go
@@ -54,7 +54,7 @@ func New(processor *processing.Processor, dTicker time.Duration, wsBuf int) *Mod
ReadBufferSize: wsBuf, // we don't expect reads
WriteBufferSize: wsBuf,
- // we expect cors requests (via eg., pinafore.social) so be lenient
+ // we expect cors requests (via eg., semaphore.social) so be lenient
CheckOrigin: func(r *http.Request) bool { return true },
},
}
diff --git a/internal/middleware/cors.go b/internal/middleware/cors.go
index 22e2e81d5..caa091e62 100644
--- a/internal/middleware/cors.go
+++ b/internal/middleware/cors.go
@@ -25,7 +25,7 @@ import (
)
// CORS returns a new gin middleware which allows CORS requests to be processed.
-// This is necessary in order for web/browser-based clients like Pinafore to work.
+// This is necessary in order for web/browser-based clients like Semaphore to work.
func CORS() gin.HandlerFunc {
cfg := cors.Config{
// todo: use config to customize this