Make sure final data is there in downloader
parent
2634dab40c
commit
336d98230f
10
morss.py
10
morss.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue