From c8ece388ccc526ab805a0aae33737fc0060ad3f0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 9 Sep 2019 16:08:51 +0100 Subject: use detect_encoding=False in github webhook url shortening --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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( -- cgit v1.3.1-10-gc9f91