From 59c401b1dc3af22a62ea98e7e2b85c158f7dfec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 18 Jun 2021 14:59:25 +0200 Subject: [PATCH] Stop setting content-type twice --- version.go | 2 +- web/server.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/version.go b/version.go index 3c113e2..0a3e9da 100644 --- a/version.go +++ b/version.go @@ -5,7 +5,7 @@ import ( "runtime" ) -var Version = "v0.1.5" +var Version = "v0.1.6" var Build string func FullVersion() string { diff --git a/web/server.go b/web/server.go index a1b1a1c..a983edd 100644 --- a/web/server.go +++ b/web/server.go @@ -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)