From 6517a38fc19d1f47ab3a78751234358b9fe06956 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 15 Jul 2018 00:02:33 +0200 Subject: [PATCH] Add content-type header to token response --- cmd/eksterd/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eksterd/http.go b/cmd/eksterd/http.go index beba259..3e141e7 100644 --- a/cmd/eksterd/http.go +++ b/cmd/eksterd/http.go @@ -545,6 +545,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { Scope: auth.Scope, } + w.Header().Add("Content-Type", "application/json") enc := json.NewEncoder(w) err = enc.Encode(&res) if err != nil {