Fix missing name in Server header

This commit is contained in:
Torjus Håkestad 2021-09-30 23:15:08 +02:00
parent 5535a88fb1
commit 047478b9eb
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import (
"runtime" "runtime"
) )
var Version = "v0.1.11" var Version = "v0.1.12"
var Build string var Build string
func FullVersion() string { func FullVersion() string {

View File

@ -84,7 +84,7 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto
r.Use(middleware.RealIP) r.Use(middleware.RealIP)
r.Use(middleware.RequestID) r.Use(middleware.RequestID)
r.Use(s.LoggingMiddleware) 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.Route("/", func(r chi.Router) {
r.Get("/*", s.IndexHandler("web/vue-frontend/dist")) r.Get("/*", s.IndexHandler("web/vue-frontend/dist"))