Use 201 status code where appropriate for APIv4 (#5903)

Этот коммит содержится в:
Joram Wilander
2017-03-31 09:56:20 -04:00
коммит произвёл Christopher Speller
родитель 4e224c2996
Коммит 5f6d50bff1
11 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@@ -52,6 +52,7 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
w.WriteHeader(http.StatusCreated)
w.Write([]byte(rp.ToJson()))
}