mirror of
https://github.com/django/django.git
synced 2025-01-27 02:29:55 +00:00
Merge pull request #366 from collinanderson/patch-6
fixed rfc comment typo in middleware/csrf.py
This commit is contained in:
commit
611a2b266b
@ -105,7 +105,7 @@ class CsrfViewMiddleware(object):
|
||||
if getattr(callback, 'csrf_exempt', False):
|
||||
return None
|
||||
|
||||
# Assume that anything not defined as 'safe' by RC2616 needs protection
|
||||
# Assume that anything not defined as 'safe' by RFC2616 needs protection
|
||||
if request.method not in ('GET', 'HEAD', 'OPTIONS', 'TRACE'):
|
||||
if getattr(request, '_dont_enforce_csrf_checks', False):
|
||||
# Mechanism to turn off CSRF checks for test suite.
|
||||
|
Loading…
x
Reference in New Issue
Block a user