Loading django/http/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -676,7 +676,7 @@ class HttpResponse(object): return b''.join([smart_bytes(e, self._charset) for e in self._container]) def _set_content(self, value): if hasattr(value, '__iter__') and not isinstance(value, six.string_types): if hasattr(value, '__iter__') and not isinstance(value, (bytes, six.string_types)): self._container = value self._base_content_is_iter = True else: Loading Loading
django/http/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -676,7 +676,7 @@ class HttpResponse(object): return b''.join([smart_bytes(e, self._charset) for e in self._container]) def _set_content(self, value): if hasattr(value, '__iter__') and not isinstance(value, six.string_types): if hasattr(value, '__iter__') and not isinstance(value, (bytes, six.string_types)): self._container = value self._base_content_is_iter = True else: Loading