Skip to content

Commit

Permalink
Merge pull request django#366 from collinanderson/patch-6
Browse files Browse the repository at this point in the history
fixed rfc comment typo in middleware/csrf.py
  • Loading branch information
alex committed Sep 10, 2012
2 parents cb1614f + f416ea9 commit 611a2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/middleware/csrf.py
Expand Up @@ -105,7 +105,7 @@ def process_view(self, request, callback, callback_args, callback_kwargs):
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.
Expand Down

0 comments on commit 611a2b2

Please sign in to comment.