summaryrefslogtreecommitdiff
path: root/django/middleware/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/middleware/http.py')
-rw-r--r--django/middleware/http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/middleware/http.py b/django/middleware/http.py
index 72ef52a126..ec9fecdcfd 100644
--- a/django/middleware/http.py
+++ b/django/middleware/http.py
@@ -1,6 +1,6 @@
-from django.utils.cache import cc_delim_re, get_conditional_response, set_response_etag
+from django.utils.cache import get_conditional_response, set_response_etag
from django.utils.deprecation import MiddlewareMixin
-from django.utils.http import parse_http_date_safe
+from django.utils.http import parse_http_date_safe, split_header_value
class ConditionalGetMiddleware(MiddlewareMixin):
@@ -37,5 +37,5 @@ class ConditionalGetMiddleware(MiddlewareMixin):
def needs_etag(self, response):
"""Return True if an ETag header should be added to response."""
- cache_control_headers = cc_delim_re.split(response.get("Cache-Control", ""))
+ cache_control_headers = split_header_value(response.get("Cache-Control", ""))
return all(header.lower() != "no-store" for header in cache_control_headers)