Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Mar 26, 2024
1 parent 42fc56c commit 1884181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activity_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def __init__(self, server_address, RequestHandlerClass, state):
super().__init__(server_address, RequestHandlerClass)


class JSONRequestHandler(BaseHTTPRequestHandler):
class MainRequestHandler(BaseHTTPRequestHandler):
def _send_json(self, code: int, data: Any) -> None:
self.send_response(code)
self.send_header("Content-type", "application/json")
Expand Down Expand Up @@ -645,7 +645,7 @@ def make_server(port: int) -> HTTPServerWithState:
state.activity_manager.start()

server_address = ("", port) # Listen on all interfaces, port 8000
return HTTPServerWithState(server_address, JSONRequestHandler, state)
return HTTPServerWithState(server_address, MainRequestHandler, state)


def main():
Expand Down

0 comments on commit 1884181

Please sign in to comment.