From c06df1affdf60e35e2be7811be2469e4ee3bf827 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 23 Feb 2016 16:28:01 -0500 Subject: [PATCH] v1: 200 on PUT --- api/v1/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/routes.go b/api/v1/routes.go index fab222c4..7b987b5f 100644 --- a/api/v1/routes.go +++ b/api/v1/routes.go @@ -336,8 +336,8 @@ func putFix(w http.ResponseWriter, r *http.Request, p httprouter.Params, ctx *co return putFixRoute, http.StatusInternalServerError } - w.WriteHeader(http.StatusCreated) - return putFixRoute, http.StatusCreated + w.WriteHeader(http.StatusOK) + return putFixRoute, http.StatusOK } func deleteFix(w http.ResponseWriter, r *http.Request, p httprouter.Params, ctx *context.RouteContext) (string, int) {