Use HTTP 1.1 responses for Hub TLS

This commit is contained in:
kzolotarev95 committed 2026-07-01 22:53:52 +04:00
1 parent 44a7f0938a
commit ff36b6ccda
1 file changed
+2
+2
View File
@@ -1893,6 +1893,7 @@ class App:
class Handler(BaseHTTPRequestHandler): class Handler(BaseHTTPRequestHandler):
server_version = "owrt-remote-hub/1.0" server_version = "owrt-remote-hub/1.0"
protocol_version = "HTTP/1.1"
@property @property
def app(self): def app(self):
@@ -1954,6 +1955,7 @@ class Handler(BaseHTTPRequestHandler):
if self.command != "HEAD": if self.command != "HEAD":
try: try:
self.wfile.write(body) self.wfile.write(body)
self.wfile.flush()
except (BrokenPipeError, ConnectionResetError, ssl.SSLError): except (BrokenPipeError, ConnectionResetError, ssl.SSLError):
pass pass