Obey Strict-Transport-Security header

This commit is contained in:
Sam Gibson 2015-07-24 17:44:04 +10:00
parent 42a9756df0
commit c44579018a
3 changed files with 32 additions and 10 deletions

View file

@ -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)
}
}