valid json

This commit is contained in:
Guilhem Saurel 2019-02-13 01:13:28 +01:00
parent 4fcf956bca
commit df0c6f5759

View file

@ -53,7 +53,7 @@ class WWMBotForwarder(BaseHTTPRequestHandler):
self.send_response(200 if status == 'OK' else 401) self.send_response(200 if status == 'OK' else 401)
self.send_header('Content-Type', 'application/json') self.send_header('Content-Type', 'application/json')
self.end_headers() self.end_headers()
self.wfile.write(b"{'status': %a}" % status) self.wfile.write(b'{"status": "%a"}' % status)
if __name__ == '__main__': if __name__ == '__main__':