summaryrefslogtreecommitdiff
path: root/tests/regressiontests/test_client_regress/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/test_client_regress/views.py')
-rw-r--r--tests/regressiontests/test_client_regress/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/test_client_regress/views.py b/tests/regressiontests/test_client_regress/views.py
index 5ba7cc30a9..40aa61fca7 100644
--- a/tests/regressiontests/test_client_regress/views.py
+++ b/tests/regressiontests/test_client_regress/views.py
@@ -86,3 +86,8 @@ def return_json_file(request):
mimetype='application/json; charset=' + charset)
response['Content-Disposition'] = 'attachment; filename=testfile.json'
return response
+
+def check_headers(request):
+ "A view that responds with value of the X-ARG-CHECK header"
+ return HttpResponse('HTTP_X_ARG_CHECK: %s' % request.META.get('HTTP_X_ARG_CHECK', 'Undefined'))
+