Ticket #11522: simple_fix.diff

File simple_fix.diff, 480 bytes (added by Ilya Semenov, 15 years ago)

added a special rule in HttpResponse.setitem

  • django/http/__init__.py

     
    317317            yield value
    318318
    319319    def __setitem__(self, header, value):
     320        if header.lower() == 'location':
     321            value = iri_to_uri(value)
    320322        header, value = self._convert_to_ascii(header, value)
    321323        self._headers[header.lower()] = (header, value)
    322324
Back to Top