mirror of https://git.48k.eu/ogclient
Send complete HTTP header when response has no body
parent
a85c113ee7
commit
b53f8d0f8f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue