mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +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 --> |
||
---|---|---|
.. | ||
fetch | ||
about_loader.rs | ||
Cargo.toml | ||
chrome_loader.rs | ||
cookie.rs | ||
cookie_storage.rs | ||
data_loader.rs | ||
file_loader.rs | ||
hsts.rs | ||
http_loader.rs | ||
image_cache_thread.rs | ||
lib.rs | ||
mime_classifier.rs | ||
pub_domains.rs | ||
resource_thread.rs | ||
storage_thread.rs | ||
websocket_loader.rs |