summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cahoon <chris.cahoon@gmail.com>2009-07-24 01:57:43 +0000
committerChris Cahoon <chris.cahoon@gmail.com>2009-07-24 01:57:43 +0000
commitb127e06ca8debe89e948fd2c05ecfb0bc0b56f06 (patch)
treeb509f4398a98e996121787983d74d1296baa2d09
parent9ac495af4451ece0424f8053bce1b141fe4d8d8f (diff)
downloaddjango-b127e06ca8debe89e948fd2c05ecfb0bc0b56f06.tar.gz
[soc2009/http-wsgi-improvements] Fix early settings use in HttpResponseSendFile. Refs #2131.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/http-wsgi-improvements@11320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/http/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index 90048e87a4..1d4875b2db 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -272,12 +272,12 @@ class HttpResponse(object):
_status_code = 200
_codec = None
- _charset = settings.DEFAULT_CHARSET
def __init__(self, content='', mimetype=None, status=None,
content_type=None, request=None):
from django.conf import settings
accept_charset = None
+ _charset = settings.DEFAULT_CHARSET
if mimetype:
content_type = mimetype # Mimetype arg is an alias for content-type
if request: