diff options
author | Alan Pearce | 2024-05-25 02:31:40 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-25 02:31:40 +0200 |
commit | fb07320a12f83ffaf80bf3c0aca94a720f865201 (patch) | |
tree | fb36a9853c19c1549ba63f2b5c2ca7b0c90a76ff /internal/server/headers.go | |
parent | 4c4b980bff860dda725253438b499245338161df (diff) | |
download | searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.lz searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.zst searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.zip |
build: just use nix version as internal version
Diffstat (limited to 'internal/server/headers.go')
-rw-r--r-- | internal/server/headers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/headers.go b/internal/server/headers.go index 562fccc..7ff9fb9 100644 --- a/internal/server/headers.go +++ b/internal/server/headers.go @@ -11,7 +11,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.ShortSHA) + w.Header().Add("Server", "searchix/"+cfg.Version) next.ServeHTTP(w, r) }) |