mirror of
https://github.com/servo/servo.git
synced 2025-09-07 05:28:21 +01:00
Thread the status through navigation redirects
This is necessary because status codes affect whether the redirect is done with the same HTTP method or a different one. This is part of #21886, but there's also a flaw in how iframes are handled that is causing the redirect to take over the entire window, so this commit doesn't entirely fix slither.io.
This commit is contained in:
parent
bf192caf4b
commit
3b1bfa3942
2 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,9 @@ impl NetworkListener {
|
|||
location_url: metadata.location_url.clone(),
|
||||
headers: headers.clone().into_inner(),
|
||||
referrer: metadata.referrer.clone(),
|
||||
status_code: metadata.status.as_ref()
|
||||
.map(|&(code, _)| code)
|
||||
.unwrap_or(200),
|
||||
});
|
||||
|
||||
// XXXManishearth we don't have the cancel_chan anymore and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue