fix: specify charset in Content-Type header for HTML response
This commit is contained in:
parent
8381be79e2
commit
367a456bcc
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user