From 336d98230fccf0ba264b1a9ac917168689ad5a33 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 30 Nov 2013 19:34:34 +0100 Subject: [PATCH] Make sure final data is there in downloader --- morss.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/morss.py b/morss.py index b75722e..afca93c 100644 --- a/morss.py +++ b/morss.py @@ -293,11 +293,11 @@ class SimpleDownload(urllib2.HTTPCookieProcessor): if self.decode: data = decodeHTML(data, resp) - if odata != data: - fp = StringIO(data) - old_resp = resp - resp = urllib2.addinfourl(fp, old_resp.headers, old_resp.url, old_resp.code) - resp.msg = old_resp.msg + fp = StringIO(data) + old_resp = resp + resp = urllib2.addinfourl(fp, old_resp.headers, old_resp.url, old_resp.code) + resp.msg = old_resp.msg + return resp https_response = http_response