Fix: Content-Length für HTTP/1.1 statische Dateien (NS_ERROR_NET_EMPTY_RESPONSE)

This commit is contained in:
2026-05-25 20:48:33 +02:00
parent 0be816a4ec
commit fbb15ed61a

View File

@@ -219,6 +219,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
self.send_response(200)
self.send_header("Content-Type", f"{content_type}; charset=utf-8")
self.send_header("Content-Length", str(len(content)))
self.send_header("Access-Control-Allow-Origin", "*")
self.send_header("Cache-Control", "no-cache")
self.end_headers()