Skip to content

Commit 9b5136e

Browse files
committed
Try to fix Jetty content type error
1 parent a4be99b commit 9b5136e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/mock_vws/_query_validators/exceptions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,17 +748,16 @@ def __init__(self) -> None:
748748
text="""\
749749
<html>
750750
<head>
751-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
751+
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
752752
<title>Error 400 Bad Request</title>
753753
</head>
754-
<body><h2>HTTP ERROR 400 Bad Request</h2>
754+
<body>
755755
<table>
756756
<tr><th>URI:</th><td>/v1/query</td></tr>
757757
<tr><th>STATUS:</th><td>400</td></tr>
758758
<tr><th>MESSAGE:</th><td>Bad Request</td></tr>
759-
<tr><th>SERVLET:</th><td>Resteasy</td></tr>
760759
</table>
761-
<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.43.v20210629</a><hr/>
760+
<hr/><a href="https://jetty.org/">Powered by Jetty:// 12.0.16</a><hr/>
762761
763762
</body>
764763
</html>

tests/mock_vws/test_query.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,20 @@
5555
text="""\
5656
<html>
5757
<head>
58-
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
58+
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
5959
<title>Error 400 Bad Request</title>
6060
</head>
61-
<body><h2>HTTP ERROR 400 Bad Request</h2>
61+
<body>
6262
<table>
6363
<tr><th>URI:</th><td>/v1/query</td></tr>
6464
<tr><th>STATUS:</th><td>400</td></tr>
6565
<tr><th>MESSAGE:</th><td>Bad Request</td></tr>
66-
<tr><th>SERVLET:</th><td>Resteasy</td></tr>
6766
</table>
68-
<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.43.v20210629</a><hr/>
67+
<hr/><a href="https://jetty.org/">Powered by Jetty:// 12.0.16</a><hr/>
6968
7069
</body>
7170
</html>
72-
""", # noqa: E501
71+
""",
7372
)
7473

7574
_NGINX_REQUEST_ENTITY_TOO_LARGE_ERROR = textwrap.dedent(

0 commit comments

Comments
 (0)