Skip to content

Commit 96503ff

Browse files
committed
Try to fix Jetty content type error
1 parent a4be99b commit 96503ff

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@
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>
62+
<h2>HTTP ERROR 400 Bad Request</h2>
6263
<table>
63-
<tr><th>URI:</th><td>/v1/query</td></tr>
64+
<tr><th>URI:</th><td>http://cloudreco.vuforia.com/v1/query</td></tr>
6465
<tr><th>STATUS:</th><td>400</td></tr>
6566
<tr><th>MESSAGE:</th><td>Bad Request</td></tr>
66-
<tr><th>SERVLET:</th><td>Resteasy</td></tr>
6767
</table>
68-
<hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.43.v20210629</a><hr/>
68+
<hr/><a href="https://jetty.org/">Powered by Jetty:// 12.0.16</a><hr/>
6969
7070
</body>
7171
</html>
72-
""", # noqa: E501
72+
""",
7373
)
7474

7575
_NGINX_REQUEST_ENTITY_TOO_LARGE_ERROR = textwrap.dedent(

0 commit comments

Comments
 (0)