From f580ca7802b2a67726511e9834cc49d59b748592 Mon Sep 17 00:00:00 2001 From: Haldun Bayhantopcu Date: Fri, 16 Dec 2016 13:21:36 +0100 Subject: [PATCH] Set content-type header to application/json for debug proxy --- proxy/debug.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/debug.go b/proxy/debug.go index fbae40ce8b..22a3f5c839 100644 --- a/proxy/debug.go +++ b/proxy/debug.go @@ -125,8 +125,11 @@ func convertDebugInfo(d *debugInfo) debugDocument { } func dbgResponse(w http.ResponseWriter, d *debugInfo) { + w.Header().Set("Content-Type", "application/json") + doc := convertDebugInfo(d) enc := json.NewEncoder(w) + if err := enc.Encode(&doc); err != nil { log.Error("[debug response]", err) }