Skip to content

Commit

Permalink
add response body
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Apr 2, 2024
1 parent a78f693 commit ee4f958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions novel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ def do_GET(self):
elif self.path == "/health":
if time.time() - last_updated_time > loop_time:
self.send_response(500)
self.wfile.write(b"Delayed")
else:
self.send_response(200)
self.wfile.write(b"OK")
self.send_header("Content-type", "application/json")
self.end_headers()
else:
Expand Down

0 comments on commit ee4f958

Please sign in to comment.