Ticket #4969: gzip-http.diff

File gzip-http.diff, 469 bytes (added by Johann Queuniet <johann.queuniet@…>, 17 years ago)

patch for HttpResponse

  • django/http/__init__.py

     
    271271        self.cookies[key]['max-age'] = 0
    272272
    273273    def _get_content(self):
     274        if self.has_header('Content-Encoding'):
     275            return ''.join(self._container)
    274276        content = smart_str(''.join(self._container), self._charset)
    275277        return content
    276278
Back to Top