Loading django/http/__init__.py +7 −7 Original line number Diff line number Diff line Loading @@ -562,8 +562,8 @@ class HttpResponse(object): # value. Both the name of the header and its value are ASCII strings. self._headers = {} self._charset = settings.DEFAULT_CHARSET if mimetype: content_type = mimetype # For backwards compatibility if mimetype: # For backwards compatibility. content_type = mimetype if not content_type: content_type = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE, self._charset) Loading Loading
django/http/__init__.py +7 −7 Original line number Diff line number Diff line Loading @@ -562,8 +562,8 @@ class HttpResponse(object): # value. Both the name of the header and its value are ASCII strings. self._headers = {} self._charset = settings.DEFAULT_CHARSET if mimetype: content_type = mimetype # For backwards compatibility if mimetype: # For backwards compatibility. content_type = mimetype if not content_type: content_type = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE, self._charset) Loading