diff options
| author | 2019-09-09 16:08:51 +0100 | |
|---|---|---|
| committer | 2019-09-09 16:08:51 +0100 | |
| commit | c8ece388ccc526ab805a0aae33737fc0060ad3f0 (patch) | |
| tree | 3d05ef6f9552859683a9928b3260c8a0aa5492af | |
| parent | add flag to disable encoding detection (diff) | |
| signature | ||
use detect_encoding=False in github webhook url shortening
| -rw-r--r-- | modules/git_webhooks/github.py | 2 |
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( |
