mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 19:35:39 +00:00
valid json
This commit is contained in:
2
main.py
2
main.py
@@ -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__':
|
||||||
|
|||||||
Reference in New Issue
Block a user