Stop setting content-type twice
This commit is contained in:
parent
0cce8aecc6
commit
59c401b1dc
@ -5,7 +5,7 @@ import (
|
||||
"runtime"
|
||||
)
|
||||
|
||||
var Version = "v0.1.5"
|
||||
var Version = "v0.1.6"
|
||||
var Build string
|
||||
|
||||
func FullVersion() string {
|
||||
|
@ -90,7 +90,6 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto
|
||||
r.Get("/*", s.IndexHandler("web/vue-frontend/dist"))
|
||||
r.Get("/stream", s.HandlerAttemptStream)
|
||||
r.Route("/api", func(r chi.Router) {
|
||||
r.Use(middleware.SetHeader("Content-Type", "application/json"))
|
||||
r.Get("/stats", s.HandlerStats)
|
||||
r.Get("/stream", s.HandlerAttemptStream)
|
||||
r.Get("/query", s.HandlerQuery)
|
||||
|
Loading…
Reference in New Issue
Block a user