10000 [soc2009/http-wsgi-improvements] Fix early settings use in HttpRespon… · alex-python/django@b127e06 · GitHub
[go: up one dir, main page]

Skip to content

Commit b127e06

Browse files
committed
[soc2009/http-wsgi-improvements] Fix early settings use in HttpResponseSendFile. Refs django#2131.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/http-wsgi-improvements@11320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 9ac495a commit b127e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,12 @@ class HttpResponse(object):
272272

273273
_status_code = 200
274274
_codec = None
275-
_charset = settings.DEFAULT_CHARSET
276275

277276
def __init__(self, content='', mimetype=None, status=None,
278277
content_type=None, request=None):
279278
from django.conf import settings
280279
accept_charset = None
280+
_charset = settings.DEFAULT_CHARSET
281281
if mimetype:
282282
content_type = mimetype # Mimetype arg is an alias for content-type
283283
if request:

0 commit comments

Comments
 (0)
0