summaryrefslogtreecommitdiff
path: root/django/http/utils.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2012-08-01 10:56:35 +0200
committerFlorian Apolloner <florian@apolloner.eu>2012-08-01 11:01:52 +0200
commitd0d5dc6cd76f01c8a71b677357ad2f702cb54416 (patch)
treef49b6f584ff15bd83e83cb0f28b2560af2a764c7 /django/http/utils.py
parente2ac91735f8acb9d1b792f510ed38e4afcb744b5 (diff)
[1.3.x] Fixed #18692 -- Restored python 2.4 compatibility.
Thanks to chipx86 for the report.
Diffstat (limited to 'django/http/utils.py')
-rw-r--r--django/http/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/utils.py b/django/http/utils.py
index 01808648ba..3fdebf0474 100644
--- a/django/http/utils.py
+++ b/django/http/utils.py
@@ -76,7 +76,7 @@ def fix_IE_for_vary(request, response):
# The first part of the Content-Type field will be the MIME type,
# everything after ';', such as character-set, can be ignored.
- mime_type = response.get('Content-Type', '').partition(';')[0]
+ mime_type = response.get('Content-Type', '').split(';', 1)[0]
if mime_type not in safe_mime_types:
try:
del response['Vary']