diff options
author | Philip Lamb <phil.git@eden.net.nz> | 2024-04-12 09:51:23 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 21:51:23 +0000 |
commit | 10ec8565eaa0e9e86d3a6506ab1e83d5a41f51c8 (patch) | |
tree | 107d39dc9ceb56eb44c0c65982f3e21c60502835 /components/net/tests/hsts.rs | |
parent | 62a25fdcc4165ecafc6f40adc8a3e2c47838e4a3 (diff) | |
download | servo-10ec8565eaa0e9e86d3a6506ab1e83d5a41f51c8.tar.gz servo-10ec8565eaa0e9e86d3a6506ab1e83d5a41f51c8.zip |
Fixes for HTTP header compliance. (#32024)
- Fix 400 errors from nginx in response to Servo requests by implementing conformant albeit non-normative removal of whitespace from `Accept` and `Accept-Language` HTTP headers. (To match behaviour of Firefox, Safari, and Chrome) https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.2
- Provide `Host` header as REQUIRED by HTTP protocol https://www.rfc-editor.org/rfc/rfc9110#field.host
- Update tests.
Diffstat (limited to 'components/net/tests/hsts.rs')
0 files changed, 0 insertions, 0 deletions