summaryrefslogtreecommitdiffhomepage
path: root/test/go/ns_inspect/app.go
diff options
context:
space:
mode:
authorTiago Natel <t.nateldemoura@f5.com>2019-11-26 16:00:11 +0000
committerTiago Natel <t.nateldemoura@f5.com>2019-11-26 16:00:11 +0000
commit224787bbaccfc2d065cbc6fb507820fe8d30cf61 (patch)
tree632952c7c2891d6e30699fd6b5a400c6efe11c14 /test/go/ns_inspect/app.go
parent01103c50055abef3640cef57d820567931bb3518 (diff)
downloadunit-224787bbaccfc2d065cbc6fb507820fe8d30cf61.tar.gz
unit-224787bbaccfc2d065cbc6fb507820fe8d30cf61.tar.bz2
Tests: added getjson() helper.
Diffstat (limited to '')
-rw-r--r--test/go/ns_inspect/app.go2
1 files changed, 2 insertions, 0 deletions
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)
}