summaryrefslogtreecommitdiffstats
path: root/api4/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/channel.go')
-rw-r--r--api4/channel.go1
1 files changed, 1 insertions, 0 deletions
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()))
}
}