Ticket #3499: HttpResponseRedirect.diff
File HttpResponseRedirect.diff, 722 bytes (added by , 18 years ago) |
---|
-
__init__.py
258 258 HttpResponse.__init__(self) 259 259 self['Location'] = quote(redirect_to, safe=RESERVED_CHARS) 260 260 self.status_code = 302 261 self.redirect_to = self.headers['Location'] 261 262 262 263 class HttpResponsePermanentRedirect(HttpResponse): 263 264 def __init__(self, redirect_to): 264 265 HttpResponse.__init__(self) 265 266 self['Location'] = quote(redirect_to, safe=RESERVED_CHARS) 266 267 self.status_code = 301 268 self.redirect_to = self.headers['Location'] 267 269 268 270 class HttpResponseNotModified(HttpResponse): 269 271 def __init__(self):