Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[soc2009/http-wsgi-improvements] Fix early settings use in HttpRespon…

…seSendFile. Refs #2131.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/http-wsgi-improvements@11320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b127e06ca8debe89e948fd2c05ecfb0bc0b56f06 1 parent 9ac495a
@ccahoon ccahoon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/http/__init__.py
View
2  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:
Please sign in to comment.
Something went wrong with that request. Please try again.