Skip to content

Commit 8d6b728

Browse files
committed
Update a content type in the query endpoint
1 parent 4924149 commit 8d6b728

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mock_vws/_query_validators/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def validate_content_type_header(
216216

217217
if pdict['boundary'].encode() not in request.body:
218218
context.status_code = codes.BAD_REQUEST
219-
context.headers['Content-Type'] = 'text/html'
219+
context.headers['Content-Type'] = 'text/html;charset=UTF-8'
220220
return (
221221
'java.lang.RuntimeException: RESTEASY007500: '
222222
'Could find no Content-Disposition header within part'

tests/mock_vws/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_bogus_boundary(
271271
assert_vwq_failure(
272272
response=response,
273273
status_code=codes.BAD_REQUEST,
274-
content_type='text/html',
274+
content_type='text/html;charset=UTF-8',
275275
)
276276

277277
def test_extra_section(

0 commit comments

Comments
 (0)