summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ogRest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index c68eb0e..a35ff5d 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -63,7 +63,8 @@ class restResponse():
self.msg += '\r\nContent-Type: application/json'
self.msg += '\r\n\r\n' + json_body.dump()
else:
- self.msg += '\r\n'
+ self.msg += 'Content-Length: 0\r\n' \
+ 'Content-Type: application/json\r\n\r\n'
def get(self):