mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
more concise
This commit is contained in:
parent
733019e029
commit
94ea422404
1 changed files with 5 additions and 7 deletions
|
@ -845,14 +845,12 @@ pub fn http_fetch(
|
||||||
});
|
});
|
||||||
|
|
||||||
// Substep 4.
|
// Substep 4.
|
||||||
if let Some(ref mut location) = location {
|
if let Some(Ok(ref mut location)) = location {
|
||||||
if let Ok(ref mut location) = location {
|
|
||||||
if location.fragment().is_none() {
|
if location.fragment().is_none() {
|
||||||
let current_url = request.current_url();
|
let current_url = request.current_url();
|
||||||
location.set_fragment(current_url.fragment());
|
location.set_fragment(current_url.fragment());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
response.actual_response_mut().location_url = location;
|
response.actual_response_mut().location_url = location;
|
||||||
|
|
||||||
// Substep 5.
|
// Substep 5.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue