From 35b0066cba0d4dd4ed1590d106d81ce4f83c7f22 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 28 Sep 2019 01:44:05 +0100 Subject: [PATCH] Update a content type in the query endpoint --- src/mock_vws/_query_validators/__init__.py | 2 +- tests/mock_vws/test_query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mock_vws/_query_validators/__init__.py b/src/mock_vws/_query_validators/__init__.py index 5258bb3c1..424db3743 100644 --- a/src/mock_vws/_query_validators/__init__.py +++ b/src/mock_vws/_query_validators/__init__.py @@ -208,7 +208,7 @@ def validate_content_type_header( if 'boundary' not in pdict: context.status_code = codes.BAD_REQUEST - context.headers['Content-Type'] = 'text/html' + context.headers['Content-Type'] = 'text/html;charset=UTF-8' return ( 'java.io.IOException: RESTEASY007550: ' 'Unable to get boundary for multipart' diff --git a/tests/mock_vws/test_query.py b/tests/mock_vws/test_query.py index 5e3f68050..e86c4374c 100644 --- a/tests/mock_vws/test_query.py +++ b/tests/mock_vws/test_query.py @@ -219,7 +219,7 @@ def test_no_boundary( assert_vwq_failure( response=response, status_code=codes.BAD_REQUEST, - content_type='text/html', + content_type='text/html;charset=UTF-8', ) def test_bogus_boundary(