Browse Source

valid json

Guilhem Saurel 6 years ago
parent
commit
df0c6f5759
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.py

+ 1 - 1
main.py

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