From b127e06ca8debe89e948fd2c05ecfb0bc0b56f06 Mon Sep 17 00:00:00 2001 From: Chris Cahoon Date: Fri, 24 Jul 2009 01:57:43 +0000 Subject: [PATCH] [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 --- django/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: