We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fcd20c commit e990020Copy full SHA for e990020
tests/web/mock_web_api_server.py
@@ -113,6 +113,8 @@ def _handle(self):
113
114
if pattern == "error_html_response":
115
self.send_response(503)
116
+ # no charset here is intentional for testing
117
+ self.send_header("content-type", "text/html")
118
self.send_header("connection", "close")
119
self.end_headers()
120
self.wfile.write(self.error_html_response_body.encode("utf-8"))
0 commit comments