fix: specify charset in Content-Type header for HTML response

This commit is contained in:
Nik Afiq 2026-05-12 23:13:25 +09:00
parent 8381be79e2
commit 367a456bcc

View File

@ -111,7 +111,7 @@ spec:
</body>
</html>'''.encode()
self.send_response(200)
self.send_header('Content-Type', 'text/html')
self.send_header('Content-Type', 'text/html; charset=utf-8')
self.send_header('Content-Length', len(body))
self.send_header('Content-Security-Policy', 'frame-ancestors *')
self.end_headers()