Make HttpResponseRedirect RFC compilant.
|Reported by:||Piotr Lewandowski <django@…>||Owned by:||nobody|
|Severity:||Keywords:||rfc2616 http redirect post|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The RFC2616 states in 10.3.4 that:
The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource.
class HttpResponseRedirect(HttpResponse): status_code = 302
class HttpResponseRedirect(HttpResponse): status_code = 303
Unfortunately this change is backwards-incompatible.
Change History (4)
comment:1 Changed 8 years ago by esaj
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 8 years ago by PJCrosier
- Triage Stage changed from Unreviewed to Design decision needed