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 удалений

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

@@ -41,5 +41,6 @@ func createCommand(c *Context, w http.ResponseWriter, r *http.Request) {
}
c.LogAudit("success")
w.WriteHeader(http.StatusCreated)
w.Write([]byte(rcmd.ToJson()))
}