summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-01-27 21:22:39 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-28 09:14:13 +0100
commitf86999da0c150d2a6976ba69a352164b55c52639 (patch)
tree3bba6dd489a4268a9c927f272fa99d9064528780 /src
parent7196e7198efa6805a566842522c34096bef122a2 (diff)
add space after Content-Length and Content-Type
ogAdmServer needs this space to work fine.
Diffstat (limited to 'src')
-rw-r--r--src/ogRest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index d4521b8..f9913c8 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -50,8 +50,8 @@ class restResponse():
self.msg += '\r\n'
if jsonResp:
- self.msg += 'Content-Length:' + str(len(jsonResp.dumpMsg()))
- self.msg += '\r\nContent-Type:application/json'
+ self.msg += 'Content-Length: ' + str(len(jsonResp.dumpMsg()))
+ self.msg += '\r\nContent-Type: application/json'
self.msg += '\r\n\r\n' + jsonResp.dumpMsg()
else:
self.msg += '\r\n'