mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix check conditions
This commit is contained in:
parent
b0a12f6a8a
commit
70c62ceee7
1 changed files with 2 additions and 5 deletions
|
@ -1462,11 +1462,8 @@ fn http_network_fetch(
|
|||
_ => false,
|
||||
});
|
||||
|
||||
let is_same_origin = request.url_list.iter().any(|url| match request.origin {
|
||||
SpecificOrigin(ref immutable_request_origin) => {
|
||||
url.clone().into_url().origin().ascii_serialization() ==
|
||||
immutable_request_origin.ascii_serialization()
|
||||
},
|
||||
let is_same_origin = request.url_list.iter().all(|url| match request.origin {
|
||||
SpecificOrigin(ref immutable_request_origin) => url.origin() == *immutable_request_origin,
|
||||
_ => false,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue