Make sure final data is there in downloader

master
pictuga 2013-11-30 19:34:34 +01:00
parent 2634dab40c
commit 336d98230f
1 changed files with 5 additions and 5 deletions

View File

@ -293,11 +293,11 @@ class SimpleDownload(urllib2.HTTPCookieProcessor):
if self.decode: if self.decode:
data = decodeHTML(data, resp) data = decodeHTML(data, resp)
if odata != data:
fp = StringIO(data) fp = StringIO(data)
old_resp = resp old_resp = resp
resp = urllib2.addinfourl(fp, old_resp.headers, old_resp.url, old_resp.code) resp = urllib2.addinfourl(fp, old_resp.headers, old_resp.url, old_resp.code)
resp.msg = old_resp.msg resp.msg = old_resp.msg
return resp return resp
https_response = http_response https_response = http_response