Commits

Anonymous committed ae244a1

[soc2009/http-wsgi-improvements] Fix early settings use in HttpResponseSendFile. Refs #2131.

  • Participants
  • Parent commits ba9c95c
  • Branches soc2009/http-wsgi-improvements

Comments (0)

Files changed (1)

File django/http/__init__.py

 
     _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: