We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2302c8d commit 59c6f76Copy full SHA for 59c6f76
python/ql/test/library-tests/frameworks/django-v2-v3/response_test.py
@@ -49,6 +49,15 @@ def redirect_through_normal_response(request):
49
resp.content = private # $ MISSING: responseBody=private
50
return resp
51
52
+def redirect_through_normal_response_new_headers_attr(request):
53
+ private = "private"
54
+ next = request.GET.get("next")
55
+
56
+ resp = HttpResponse() # $ HttpResponse mimetype=text/html
57
+ resp.status_code = 302
58
+ resp.headers['Location'] = next # $ MISSING: redirectLocation=next
59
+ resp.content = private # $ MISSING: responseBody=private
60
+ return resp
61
62
def redirect_shortcut(request):
63
next = request.GET.get("next")
0 commit comments