mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Strip request-body-header when redirecting from a POST to GET
This doesn't change any expectation because we're not setting response.redirected properly so all the tests fail later on when it's asserted to be true. Fixes #25257
This commit is contained in:
parent
6653b89b64
commit
566147dab3
2 changed files with 15 additions and 3 deletions
|
@ -287,8 +287,7 @@ impl ResponseMethods for Response {
|
|||
|
||||
// https://fetch.spec.whatwg.org/#dom-response-redirected
|
||||
fn Redirected(&self) -> bool {
|
||||
let url_list_len = self.url_list.borrow().len();
|
||||
url_list_len > 1
|
||||
return *self.redirected.borrow();
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#dom-response-status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue