From 5f6d50bff1b4098bc0ef3c120e7b12104e5c4894 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 31 Mar 2017 09:56:20 -0400 Subject: Use 201 status code where appropriate for APIv4 (#5903) --- api4/post.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api4/post.go') diff --git a/api4/post.go b/api4/post.go index af5fc8cfa..9c671ec21 100644 --- a/api4/post.go +++ b/api4/post.go @@ -52,6 +52,7 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) { return } + w.WriteHeader(http.StatusCreated) w.Write([]byte(rp.ToJson())) } -- cgit v1.2.3-1-g7c22