diff options
Diffstat (limited to 'django/http/response.py')
| -rw-r--r-- | django/http/response.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/http/response.py b/django/http/response.py index c39519c4bb..269953c0af 100644 --- a/django/http/response.py +++ b/django/http/response.py @@ -17,8 +17,9 @@ from django.http.cookie import SimpleCookie from django.utils import timezone from django.utils.encoding import iri_to_uri from django.utils.http import http_date +from django.utils.regex_helper import _lazy_re_compile -_charset_from_content_type_re = re.compile(r';\s*charset=(?P<charset>[^\s;]+)', re.I) +_charset_from_content_type_re = _lazy_re_compile(r';\s*charset=(?P<charset>[^\s;]+)', re.I) class BadHeaderError(ValueError): |
