Browse Source

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

tags/v1.21.12.1
Kim Carlbäcker 无闻 9 years ago
parent
commit
d950bf68e3
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      models/webhook.go

+ 0
- 8
models/webhook.go 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.


Loading…
Cancel
Save