Tests: added getjson() helper.

This commit is contained in:
Tiago Natel
2019-11-26 16:00:11 +00:00
parent 01103c5005
commit 224787bbac
4 changed files with 29 additions and 10 deletions

View File

@@ -70,6 +70,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Add("Content-Type", "application/json")
w.Write(data)
}