From f86999da0c150d2a6976ba69a352164b55c52639 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 27 Jan 2020 21:22:39 +0100 Subject: add space after Content-Length and Content-Type ogAdmServer needs this space to work fine. --- src/ogRest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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' -- cgit v1.2.3-18-g5258