servo/components/net_traits
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
..
image Use piston_image instead of stb_image for decoding JPEGs 2016-03-02 09:13:49 +01:00
Cargo.toml Simplify TOML syntax 2016-04-26 23:51:36 +02:00
hosts.rs Upgrade to rust-url 1.0 and hyper 0.9 2016-04-23 20:27:58 +02:00
image_cache_thread.rs Added Store Command to ImageCache Task 2016-04-26 03:05:15 -04:00
lib.rs Add NetworkError::LoadCancelled variant. 2016-04-27 00:25:27 -04:00
net_error_list.rs Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
request.rs Fix logic for cors cache match 2016-04-27 16:39:57 -04:00
response.rs Implement CORS preflight fetch 2016-04-13 11:28:14 -04:00
storage_thread.rs task -> thread 2016-01-10 17:58:13 +09:00