Browse Source

Fix urlutils.py redirect problem. (Closes: #309671)

suites/jessie-proposed-backports
Chris Lawrence 17 years ago
parent
commit
b345c6e4c7
  1. 2
      urlutils.py

2
urlutils.py

@ -53,7 +53,7 @@ def decode (page):
import gzip
fp = gzip.GzipFile('', 'rb', 9, StringIO(content))
# remove content-encoding header
headers = {}
headers = httplib.HTTPMessage(StringIO(""))
ceheader = re.compile(r"(?i)content-encoding:")
for h in page.info().keys():
if not ceheader.match(h):

Loading…
Cancel
Save