summaryrefslogtreecommitdiff
path: root/django/middleware/csrf.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/middleware/csrf.py')
-rw-r--r--django/middleware/csrf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/middleware/csrf.py b/django/middleware/csrf.py
index 2e4b30ed54..c2800cfad4 100644
--- a/django/middleware/csrf.py
+++ b/django/middleware/csrf.py
@@ -420,7 +420,8 @@ class CsrfViewMiddleware(MiddlewareMixin):
if getattr(callback, "csrf_exempt", False):
return None
- # Assume that anything not defined as 'safe' by RFC 9110 needs protection
+ # Assume that anything not defined as 'safe' by RFC 9110 needs
+ # protection
if request.method in ("GET", "HEAD", "OPTIONS", "TRACE"):
return self._accept(request)