mirror of
https://github.com/django/django.git
synced 2025-06-15 08:29:11 +00:00
Fixed comment in CsrfViewMiddleware to say _reject instead of reject.
This commit is contained in:
parent
854e9b0668
commit
316cc34d04
@ -343,7 +343,7 @@ class CsrfViewMiddleware(MiddlewareMixin):
|
|||||||
# Mechanism to turn off CSRF checks for test suite. It comes after
|
# Mechanism to turn off CSRF checks for test suite. It comes after
|
||||||
# the creation of CSRF cookies, so that everything else continues
|
# the creation of CSRF cookies, so that everything else continues
|
||||||
# to work exactly the same (e.g. cookies are sent, etc.), but
|
# to work exactly the same (e.g. cookies are sent, etc.), but
|
||||||
# before any branches that call reject().
|
# before any branches that call the _reject method.
|
||||||
return self._accept(request)
|
return self._accept(request)
|
||||||
|
|
||||||
# Reject the request if the Origin header doesn't match an allowed
|
# Reject the request if the Origin header doesn't match an allowed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user