summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPChunk.py2
-rw-r--r--module/network/HTTPRequest.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 431e5b15b..f911e5c68 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -139,6 +139,8 @@ class HTTPChunk(HTTPRequest):
self.BOMChecked = False
# check and remove byte order mark
+ self.rep = False
+
self.log = getLogger("log")
@property
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index fb89334c6..a966414ee 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -204,6 +204,7 @@ class HTTPRequest():
def getResponse(self):
""" retrieve response from string io """
+ if not self.rep: return None
value = self.rep.getvalue()
self.rep.close()
self.rep = StringIO()