mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Fix logic for cors cache match The current logic for a cors cache match does not consider "credentials is false and request's credentials mode is not "include" or credentials is true." I could have missed something, but `CacheRequestDetails::credentials` is set to true if credentials mode is "include", and false otherwise. So `(!cors_cache.credentials && !cors_req.credentials) || cors_cache.credentials` would be directly following the spec, but unless I'm mistaken `cors_cache.credentials || !cors_req.credentials` is logically the same. Fixes: #10525 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10867) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
image | ||
Cargo.toml | ||
hosts.rs | ||
image_cache_thread.rs | ||
lib.rs | ||
net_error_list.rs | ||
request.rs | ||
response.rs | ||
storage_thread.rs |