mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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
|
_status_code = 200
|
||||||
_codec = None
|
_codec = None
|
||||||
_charset = settings.DEFAULT_CHARSET
|
|
||||||
|
|
||||||
def __init__(self, content='', mimetype=None, status=None,
|
def __init__(self, content='', mimetype=None, status=None,
|
||||||
content_type=None, request=None):
|
content_type=None, request=None):
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
accept_charset = None
|
accept_charset = None
|
||||||
|
_charset = settings.DEFAULT_CHARSET
|
||||||
if mimetype:
|
if mimetype:
|
||||||
content_type = mimetype # Mimetype arg is an alias for content-type
|
content_type = mimetype # Mimetype arg is an alias for content-type
|
||||||
if request:
|
if request:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user