servo/components/net
bors-servo 3d38a60cee Auto merge of #10867 - danlrobertson:sandbox, r=KiChjang
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 -->
2016-04-28 13:36:05 -07:00
..
fetch Cleanup CORSCache 2016-04-27 17:02:54 -04:00
about_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
Cargo.toml Simplify TOML syntax 2016-04-26 23:51:36 +02:00
chrome_loader.rs More chrome URL hardenning and tests. 2016-04-23 20:28:03 +02:00
cookie.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
cookie_storage.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
data_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
file_loader.rs Add NetworkError::LoadCancelled variant. 2016-04-27 00:25:27 -04:00
hsts.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
http_loader.rs Auto merge of #10869 - frewsxcv:dry, r=jdm 2016-04-27 04:23:34 -07:00
image_cache_thread.rs Added Store Command to ImageCache Task 2016-04-26 03:05:15 -04:00
lib.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
mime_classifier.rs Use constructor pattern for ApacheFlag enum. 2016-04-15 18:10:33 -04:00
pub_domains.rs Fix existing syntactics nits. 2015-08-16 10:30:43 -04:00
resource_thread.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
storage_thread.rs read cookie_jar, hsts_list, auth_cache, and local_data from file if profile_dir option is present 2016-04-25 19:39:40 -04:00
websocket_loader.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00