diff options
Diffstat (limited to 'sugar_network/toolkit/http.py')
-rw-r--r-- | sugar_network/toolkit/http.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sugar_network/toolkit/http.py b/sugar_network/toolkit/http.py index 3fc7259..2241183 100644 --- a/sugar_network/toolkit/http.py +++ b/sugar_network/toolkit/http.py @@ -171,7 +171,10 @@ class Client(object): if response is not None: response.content_type = reply.headers['Content-Type'] - return self._decode_reply(reply) + result = self._decode_reply(reply) + if result is None: + result = reply.content + return result def download(self, url_path, out_path, seqno=None, extract=False): if isdir(out_path): |