diff options
Diffstat (limited to 'internal/server/headers.go')
-rw-r--r-- | internal/server/headers.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/server/headers.go b/internal/server/headers.go index 7ff9fb9..9a54380 100644 --- a/internal/server/headers.go +++ b/internal/server/headers.go @@ -2,7 +2,8 @@ package server import ( "net/http" - cfg "searchix/internal/config" + + cfg "go.alanpearce.eu/searchix/internal/config" ) func AddHeadersMiddleware(next http.Handler, config *cfg.Config) http.Handler { @@ -11,7 +12,7 @@ func AddHeadersMiddleware(next http.Handler, config *cfg.Config) http.Handler { w.Header().Add(h, v) } w.Header().Add("Content-Security-Policy", config.Web.ContentSecurityPolicy.String()) - w.Header().Add("Server", "searchix/"+cfg.Version) + w.Header().Add("Server", "go.alanpearce.eu/searchix/"+cfg.Version) next.ServeHTTP(w, r) }) |