diff options
author | Kim Carlbäcker <kim.carlbacker@gmail.com> | 2016-07-15 08:02:19 +0200 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-07-15 14:02:19 +0800 |
commit | d950bf68e327249d592f4371a2f689020f11f09c (patch) | |
tree | e6effd5d57b34a6251555e1d08e7be886f66f090 | |
parent | 7796c9e1223e8a99eb265adff0974d05bb594cfa (diff) | |
download | gitea-d950bf68e327249d592f4371a2f689020f11f09c.tar.gz gitea-d950bf68e327249d592f4371a2f689020f11f09c.zip |
Ignore Response Body for Slack Hooks #3169 (#3256)
-rw-r--r-- | models/webhook.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/models/webhook.go b/models/webhook.go index 7a42093b5a..85590c705a 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -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. |