mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Obey Strict-Transport-Security header
This commit is contained in:
parent
42a9756df0
commit
c44579018a
3 changed files with 32 additions and 10 deletions
|
@ -238,7 +238,7 @@ impl ResourceChannelManager {
|
|||
consumer.send(self.resource_manager.cookie_storage.cookies_for_url(&url, source)).unwrap();
|
||||
}
|
||||
ControlMsg::SetHSTSEntryForHost(host, include_subdomains, max_age) => {
|
||||
if let Some(entry) = HSTSEntry::new(host, include_subdomains, max_age) {
|
||||
if let Some(entry) = HSTSEntry::new(host, include_subdomains, Some(max_age)) {
|
||||
self.resource_manager.add_hsts_entry(entry)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue