about summary refs log tree commit diff stats
path: root/internal/server/headers.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 18:11:11 +0200
committerAlan Pearce2024-06-29 18:11:11 +0200
commita597c5df0f9f19058b2c83fde7e7777e1d762581 (patch)
treed721fec9a49f4b3946186253bfeb1b59a4df6189 /internal/server/headers.go
parent9f01a82186f3ba8e89e1d80c75112fea38858856 (diff)
downloadsearchix-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.go5
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)
 	})