mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Correctly handle flag local_urls_only
In function Request::fetch_main, flag local_urls_only (if set) should allow fetching local urls only. Before this change, the flag had the inverse behaviour.
This commit is contained in:
parent
ef8d36d208
commit
6576fde29b
3 changed files with 43 additions and 6 deletions
|
@ -152,7 +152,7 @@ impl Request {
|
|||
pub fn new(url: Url,
|
||||
origin: Option<Origin>,
|
||||
is_service_worker_global_scope: bool) -> Request {
|
||||
Request {
|
||||
Request {
|
||||
method: RefCell::new(Method::Get),
|
||||
local_urls_only: false,
|
||||
sandboxed_storage_area_urls: false,
|
||||
|
@ -257,4 +257,8 @@ impl Request {
|
|||
_ => false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_local_urls_only(&mut self, local_urls_only: bool) {
|
||||
self.local_urls_only = local_urls_only;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue