1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00

Ignore Response Body for Slack Hooks #3169 (#3256)

This commit is contained in:
Kim Carlbäcker 2016-07-15 08:02:19 +02:00 committed by 无闻
parent 7796c9e122
commit d950bf68e3

View File

@ -584,14 +584,6 @@ func (t *HookTask) deliver() {
return
}
t.ResponseInfo.Body = string(p)
switch t.Type {
case SLACK:
if t.ResponseInfo.Body != "ok" {
log.Error(5, "slack failed with: %s", t.ResponseInfo.Body)
t.IsSucceed = false
}
}
}
// DeliverHooks checks and delivers undelivered hooks.