Skip to content

Commit

Permalink
Network: Preserve HEAD on 303 redirect
Browse files Browse the repository at this point in the history
fixed #21449. This is an update for spec.
  • Loading branch information
tigercosmos committed Aug 18, 2018
1 parent ad83faa commit 696e856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/net/http_loader.rs
Expand Up @@ -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;
}
Expand Down

0 comments on commit 696e856

Please sign in to comment.