Skip to content

Commit 455a38e

Browse files
Merge pull request #386 from adamtheturtle/fix-query-boundary-content-type
Update a content type in the query endpoint
2 parents f6165d4 + 35b0066 commit 455a38e

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
@@ -208,7 +208,7 @@ def validate_content_type_header(
208208

209209
if 'boundary' not in pdict:
210210
context.status_code = codes.BAD_REQUEST
211-
context.headers['Content-Type'] = 'text/html'
211+
context.headers['Content-Type'] = 'text/html;charset=UTF-8'
212212
return (
213213
'java.io.IOException: RESTEASY007550: '
214214
'Unable to get boundary for multipart'

tests/mock_vws/test_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_no_boundary(
219219
assert_vwq_failure(
220220
response=response,
221221
status_code=codes.BAD_REQUEST,
222-
content_type='text/html',
222+
content_type='text/html;charset=UTF-8',
223223
)
224224

225225
def test_bogus_boundary(

0 commit comments

Comments
 (0)