Tests: added getjson() helper.
This commit is contained in:
@@ -70,6 +70,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Add("Content-Type", "application/json")
|
||||
|
||||
w.Write(data)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user