Add favicon route

This commit is contained in:
2026-07-01 14:16:23 +02:00
parent d66747891e
commit de2d0c6514

View File

@@ -317,6 +317,15 @@ async def serve_client(reader, writer):
await writer.drain()
return
if method == "GET" and path == "/favicon.ico":
writer.write(
"HTTP/1.0 204 No Content\r\n"
"Connection: close\r\n"
"\r\n"
)
await writer.drain()
return
if method == "POST" and path == "/computer" and content_length > 0:
body = await reader.read(content_length)
params = parse_form(body.decode())