use detect_encoding=False in github webhook url shortening
This commit is contained in:
parent
b83f5d9e30
commit
c8ece388cc
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class GitHub(object):
|
||||||
self.log.debug("git.io shortening: %s" % url)
|
self.log.debug("git.io shortening: %s" % url)
|
||||||
try:
|
try:
|
||||||
page = utils.http.request("https://git.io", method="POST",
|
page = utils.http.request("https://git.io", method="POST",
|
||||||
post_data={"url": url})
|
post_data={"url": url}, detect_encoding=False)
|
||||||
return page.headers["Location"]
|
return page.headers["Location"]
|
||||||
except utils.http.HTTPTimeoutException:
|
except utils.http.HTTPTimeoutException:
|
||||||
self.log.warn(
|
self.log.warn(
|
||||||
|
|
Loading…
Reference in a new issue