mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-15 13:02:14 +08:00
Fixing missing 's'...
This commit is contained in:
parent
5e67d3ec74
commit
00f1c2af30
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user