From 047478b9eb39c4b26125025b4f41b2247704fa78 Mon Sep 17 00:00:00 2001 From: = Date: Thu, 30 Sep 2021 23:15:08 +0200 Subject: [PATCH] Fix missing name in Server header --- version.go | 2 +- web/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/version.go b/version.go index 4658981..55e714e 100644 --- a/version.go +++ b/version.go @@ -5,7 +5,7 @@ import ( "runtime" ) -var Version = "v0.1.11" +var Version = "v0.1.12" var Build string func FullVersion() string { diff --git a/web/server.go b/web/server.go index a983edd..e2203a9 100644 --- a/web/server.go +++ b/web/server.go @@ -84,7 +84,7 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto r.Use(middleware.RealIP) r.Use(middleware.RequestID) r.Use(s.LoggingMiddleware) - r.Use(middleware.SetHeader("Server", apiary.FullVersion())) + r.Use(middleware.SetHeader("Server", fmt.Sprintf("apiary/%s", apiary.FullVersion()))) r.Route("/", func(r chi.Router) { r.Get("/*", s.IndexHandler("web/vue-frontend/dist"))