servo/components/net
bors-servo e201b1688b
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Fix HSTS

The headers crate does not [expose](0c42ad8cf5/src/common/strict_transport_security.rs (L42)) HSTS struct fields. At the moment, it's only usable for HSTS header encoding. An update of the headers crate would require a huge update of http, hyper, hyper_serde, net::decoder as well. Therefore I've copied the `typed_get::<StrictTransportSecurity>` decoding feature  for now, but with exposed struct fields. Let's remove this custom struct with the next hyper upgrade. I tried to prevent needless HSTS database lookups when network.enforce_tls.enabled is set.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14363, fix #20120.

- [x] There are tests for these changes
2020-01-08 13:20:09 -05:00
..
fetch Fix HSTS 2020-01-07 16:07:12 +01:00
tests Fix HSTS 2020-01-07 16:07:12 +01:00
Cargo.toml Auto merge of #24875 - jdm:wr-no-ipc, r=asajeffrey 2019-11-27 20:48:13 -05:00
connector.rs Add ALPN and signature algorithms to OpenSSL config 2019-11-30 05:18:00 +01:00
cookie.rs Add webdriver deletecookies function 2019-04-19 13:15:50 +05:30
cookie_storage.rs Add webdriver deletecookies function 2019-04-19 13:15:50 +05:30
data_loader.rs Fix #2909 as far as WPT is concerned, not full data-url class integration 2019-11-26 09:49:30 -05:00
decoder.rs Fix some new warnings 2019-06-22 14:59:09 +02:00
filemanager_thread.rs Deduplicate idna, log, mime, mime_guess, percent-encoding, unicase, url, ws 2019-08-19 20:09:20 +02:00
hosts.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
hsts.rs Fix HSTS 2020-01-07 16:07:12 +01:00
http_cache.rs Upgrade to rustc 1.42.0-nightly (9b98af84c 2019-12-22) 2019-12-23 14:07:01 +01:00
http_loader.rs Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey 2020-01-08 13:20:09 -05:00
image_cache.rs Use non-IPC webrender API over explicit IPC channels. 2019-11-27 20:47:53 -05:00
lib.rs #8539 Config preferences backend restructure 2019-03-20 15:01:26 +00:00
mime_classifier.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
resource_thread.rs Fix some warnings in future Rust nightlies 2020-01-02 19:22:03 +01:00
storage_thread.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
subresource_integrity.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
websocket_loader.rs Fix HSTS 2020-01-07 16:07:12 +01:00