Skip to content

Commit e990020

Browse files
committed
Update the mock server
1 parent 9fcd20c commit e990020

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/web/mock_web_api_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def _handle(self):
113113

114114
if pattern == "error_html_response":
115115
self.send_response(503)
116+
# no charset here is intentional for testing
117+
self.send_header("content-type", "text/html")
116118
self.send_header("connection", "close")
117119
self.end_headers()
118120
self.wfile.write(self.error_html_response_body.encode("utf-8"))

0 commit comments

Comments
 (0)