use detect_encoding=False in github webhook url shortening

This commit is contained in:
jesopo 2019-09-09 16:08:51 +01:00
parent b83f5d9e30
commit c8ece388cc

View file

@ -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(