Fix missing name in Server header
This commit is contained in:
parent
5535a88fb1
commit
047478b9eb
@ -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 {
|
||||||
|
@ -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"))
|
||||||
|
Loading…
Reference in New Issue
Block a user