summaryrefslogtreecommitdiff
path: root/tests/test_client_regress/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client_regress/views.py')
-rw-r--r--tests/test_client_regress/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_client_regress/views.py b/tests/test_client_regress/views.py
index a50b0e1ed3..ce60c0398c 100644
--- a/tests/test_client_regress/views.py
+++ b/tests/test_client_regress/views.py
@@ -106,7 +106,9 @@ def return_undecodable_binary(request):
def return_json_response(request):
- return JsonResponse({'key': 'value'})
+ content_type = request.GET.get('content_type')
+ kwargs = {'content_type': content_type} if content_type else {}
+ return JsonResponse({'key': 'value'}, **kwargs)
def return_json_file(request):