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