From 77ba81d96412d37dfa068ad44e176327c08f627b Mon Sep 17 00:00:00 2001 From: Andrew Neisch Date: Sat, 3 Feb 2024 01:08:37 -0600 Subject: [PATCH] Fix bug --- thermostat_api_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thermostat_api_server.py b/thermostat_api_server.py index 303751f..b2f7158 100755 --- a/thermostat_api_server.py +++ b/thermostat_api_server.py @@ -259,6 +259,8 @@ def on_message(client, userdata, message): candidate_configuration["htsp"] = new_temperature.split(".")[0] class MyHttpRequestHandler(BaseHTTPRequestHandler): + protocol_version = 'HTTP/1.1' + def log_message(self, format, *args): logging.info(f"{self.address_string()} -- {self.command} -- {self.path}")