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

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

@@ -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()))
}
}