Fixing missing 's'...

This commit is contained in:
Josh Brandoff 2015-06-12 22:20:11 -04:00
parent 5e67d3ec74
commit 00f1c2af30

View File

@ -51,7 +51,7 @@ func WriteJSON(w http.ResponseWriter, obj interface{}) error {
return json.NewEncoder(w).Encode(obj) return json.NewEncoder(w).Encode(obj)
} }
func WriteJSONAPI(w http.ResponseWrite, obj interface{}) error { func WriteJSONAPI(w http.ResponseWriter, obj interface{}) error {
w.Header()["Content-Type"] = jsonAPIContentType w.Header()["Content-Type"] = jsonAPIContentType
return json.NewEncode(w).Encode(obj) return json.NewEncoder(w).Encode(obj)
} }