diff options
author | Alexandrov Sergey <splavgm@gmail.com> | 2020-05-16 22:46:50 +0300 |
---|---|---|
committer | Alexandrov Sergey <splavgm@gmail.com> | 2020-05-19 20:06:59 +0300 |
commit | a7c5c976161320dc5d3983cbd8d70229c633afd5 (patch) | |
tree | 21ca371fdec141712b37812bec5638542a43a7cd /components/script/dom/request.rs | |
parent | 79b6758cb91985245a79824fb1983fe3af4b11fb (diff) | |
download | servo-a7c5c976161320dc5d3983cbd8d70229c633afd5.tar.gz servo-a7c5c976161320dc5d3983cbd8d70229c633afd5.zip |
check http_state in determine_request_referrer
Diffstat (limited to 'components/script/dom/request.rs')
-rw-r--r-- | components/script/dom/request.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/request.rs b/components/script/dom/request.rs index 6dbe810b81a..7ae8c07663a 100644 --- a/components/script/dom/request.rs +++ b/components/script/dom/request.rs @@ -507,8 +507,9 @@ impl Request { fn net_request_from_global(global: &GlobalScope, url: ServoUrl) -> NetTraitsRequest { let origin = Origin::Origin(global.get_url().origin()); + let https_state = global.get_https_state(); let pipeline_id = global.pipeline_id(); - NetTraitsRequest::new(url, Some(origin), Some(pipeline_id)) + NetTraitsRequest::new(url, Some(origin), Some(pipeline_id), https_state) } // https://fetch.spec.whatwg.org/#concept-method-normalize |