From d950bf68e327249d592f4371a2f689020f11f09c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kim=20Carlb=C3=A4cker?= <kim.carlbacker@gmail.com>
Date: Fri, 15 Jul 2016 08:02:19 +0200
Subject: [PATCH] Ignore Response Body for Slack Hooks #3169 (#3256)

---
 models/webhook.go | 8 --------
 1 file changed, 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.