diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-31 09:56:20 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-03-31 09:56:20 -0400 |
commit | 5f6d50bff1b4098bc0ef3c120e7b12104e5c4894 (patch) | |
tree | 6fe69bc72fa77547dd4bba2afb0f51fa6e79ca93 /api4/command.go | |
parent | 4e224c299697e570e98c388bf23a42ffa1e6af0d (diff) | |
download | chat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.tar.gz chat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.tar.bz2 chat-5f6d50bff1b4098bc0ef3c120e7b12104e5c4894.zip |
Use 201 status code where appropriate for APIv4 (#5903)
Diffstat (limited to 'api4/command.go')
-rw-r--r-- | api4/command.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api4/command.go b/api4/command.go index 123be1932..64766ef3c 100644 --- a/api4/command.go +++ b/api4/command.go @@ -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())) } |