aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-09 16:08:51 +0100
committerGravatar jesopo2019-09-09 16:08:51 +0100
commitc8ece388ccc526ab805a0aae33737fc0060ad3f0 (patch)
tree3d05ef6f9552859683a9928b3260c8a0aa5492af /modules/git_webhooks
parentadd flag to disable encoding detection (diff)
signature
use detect_encoding=False in github webhook url shortening
Diffstat (limited to 'modules/git_webhooks')
-rw-r--r--modules/git_webhooks/github.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index 370927b5..9dacab7c 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -155,7 +155,7 @@ class GitHub(object):
self.log.debug("git.io shortening: %s" % url)
try:
page = utils.http.request("https://git.io", method="POST",
- post_data={"url": url})
+ post_data={"url": url}, detect_encoding=False)
return page.headers["Location"]
except utils.http.HTTPTimeoutException:
self.log.warn(