diff options
author | Alan Pearce | 2024-06-29 18:11:11 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-29 18:11:11 +0200 |
commit | a597c5df0f9f19058b2c83fde7e7777e1d762581 (patch) | |
tree | d721fec9a49f4b3946186253bfeb1b59a4df6189 /internal/server/headers.go | |
parent | 9f01a82186f3ba8e89e1d80c75112fea38858856 (diff) | |
download | searchix-a597c5df0f9f19058b2c83fde7e7777e1d762581.tar.lz searchix-a597c5df0f9f19058b2c83fde7e7777e1d762581.tar.zst searchix-a597c5df0f9f19058b2c83fde7e7777e1d762581.zip |
refactor: rename go module
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) }) |