mirror of
https://github.com/django/django.git
synced 2025-07-03 17:29:12 +00:00
[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
This commit is contained in:
parent
9ac495af44
commit
b127e06ca8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user