From c8bd47e94829eb1e5dd89797d995badc6386698c Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sun, 5 Jul 2015 19:25:28 +0100 Subject: [PATCH] set correct content-type header when returning json status --- prog/weaver/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/prog/weaver/main.go b/prog/weaver/main.go index 717fad47..4f4b68de 100644 --- a/prog/weaver/main.go +++ b/prog/weaver/main.go @@ -261,6 +261,7 @@ func handleHTTP(router *weave.Router, httpAddr string, allocator *ipam.Allocator muxRouter.Methods("GET").Path("/status").Headers("Accept", "application/json").HandlerFunc(func(w http.ResponseWriter, r *http.Request) { json, _ := router.StatusJSON(version) + w.Header().Set("Content-Type", "application/json") w.Write(json) })