From 00f1c2af30ee48fcf123e6632fc77550f27ea785 Mon Sep 17 00:00:00 2001 From: Josh Brandoff Date: Fri, 12 Jun 2015 22:20:11 -0400 Subject: [PATCH] Fixing missing 's'... --- render/json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/json.go b/render/json.go index 82a2c5d7..47716f48 100644 --- a/render/json.go +++ b/render/json.go @@ -51,7 +51,7 @@ func WriteJSON(w http.ResponseWriter, obj interface{}) error { 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 - return json.NewEncode(w).Encode(obj) + return json.NewEncoder(w).Encode(obj) }