diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-08-18 21:59:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-18 21:59:56 -0400 |
commit | 022cc93c226207dbcad24f0efff825c3370d0e63 (patch) | |
tree | 3a92c7c9d58b57550eddea22ffe5e95c052477b7 | |
parent | 96ce8a7e9bb6807816225b72eb4e9923e8ee1602 (diff) | |
parent | 696e8564644571a4248e6dfe0b303d7ea342a33d (diff) | |
download | servo-022cc93c226207dbcad24f0efff825c3370d0e63.tar.gz servo-022cc93c226207dbcad24f0efff825c3370d0e63.zip |
Auto merge of #21454 - tigercosmos:fetch, r=KiChjang
Network: Preserve HEAD on 303 redirect
fixed #21449. This is an update for spec.
This PR just update one step for redirect fetch according to spec. No tests result change, since the whole process is still in development(So many todo).
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21454)
<!-- Reviewable:end -->
-rw-r--r-- | components/net/http_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 3f4eb381c93..e602c432fd8 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -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; } |