1. Thomas Capricelli
  2. django

Commits

Alex Gaynor  committed 5a67bce Merge

Merge pull request #366 from collinanderson/patch-6

fixed rfc comment typo in middleware/csrf.py

  • Participants
  • Parent commits bd65f14, 6c32605
  • Branches default

Comments (0)

Files changed (1)

File django/middleware/csrf.py

View file
         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.