From d8db557cf9edd36e7400ddee01c62aaa646ecf4b Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Wed, 03 Oct 2012 09:07:24 +0000 Subject: Remote commands might return not only json --- 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): -- cgit v0.9.1