aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/net/http_loader.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs
index ac19dd28ef4..db91c15c3cc 100644
--- a/components/net/http_loader.rs
+++ b/components/net/http_loader.rs
@@ -844,13 +844,11 @@ pub fn http_fetch(
.ok()
});
- // 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());
- }
+ // Substep 4.
+ 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;