mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Network: Preserve HEAD on 303 redirect
fixed #21449. This is an update for spec.
This commit is contained in:
parent
ad83faa745
commit
696e856464
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ pub fn http_redirect_fetch(request: &mut Request,
|
|||
// Step 11
|
||||
if response.actual_response().status.map_or(false, |code|
|
||||
((code == StatusCode::MovedPermanently || code == StatusCode::Found) && request.method == Method::Post) ||
|
||||
code == StatusCode::SeeOther) {
|
||||
(code == StatusCode::SeeOther && request.method != Method::Head)) {
|
||||
request.method = Method::Get;
|
||||
request.body = None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue