Ticket #3499: HttpResponseRedirect.diff

File HttpResponseRedirect.diff, 722 bytes (added by egmanoj@…, 18 years ago)

Diff of django/http/init.py

  • __init__.py

     
    258258        HttpResponse.__init__(self)
    259259        self['Location'] = quote(redirect_to, safe=RESERVED_CHARS)
    260260        self.status_code = 302
     261        self.redirect_to = self.headers['Location']
    261262
    262263class HttpResponsePermanentRedirect(HttpResponse):
    263264    def __init__(self, redirect_to):
    264265        HttpResponse.__init__(self)
    265266        self['Location'] = quote(redirect_to, safe=RESERVED_CHARS)
    266267        self.status_code = 301
     268        self.redirect_to = self.headers['Location']
    267269
    268270class HttpResponseNotModified(HttpResponse):
    269271    def __init__(self):
Back to Top