From 224787bbaccfc2d065cbc6fb507820fe8d30cf61 Mon Sep 17 00:00:00 2001 From: Tiago Natel Date: Tue, 26 Nov 2019 16:00:11 +0000 Subject: Tests: added getjson() helper. --- test/go/ns_inspect/app.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/go') diff --git a/test/go/ns_inspect/app.go b/test/go/ns_inspect/app.go index ebecbb00..aac2053e 100644 --- a/test/go/ns_inspect/app.go +++ b/test/go/ns_inspect/app.go @@ -70,6 +70,8 @@ func handler(w http.ResponseWriter, r *http.Request) { return } + w.Header().Add("Content-Type", "application/json") + w.Write(data) } -- cgit