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/channel.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api4/channel.go') diff --git a/api4/channel.go b/api4/channel.go index b7f9508d6..c9a6ac6c5 100644 --- a/api4/channel.go +++ b/api4/channel.go @@ -738,6 +738,7 @@ func addChannelMember(c *Context, w http.ResponseWriter, r *http.Request) { return } else { c.LogAudit("name=" + channel.Name + " user_id=" + cm.UserId) + w.WriteHeader(http.StatusCreated) w.Write([]byte(cm.ToJson())) } } -- cgit v1.2.3-1-g7c22