servo/tests/unit
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
..
gfx Simplify TOML syntax 2016-04-26 23:51:36 +02:00
layout Simplify TOML syntax 2016-04-26 23:51:36 +02:00
net Auto merge of #10867 - danlrobertson:sandbox, r=KiChjang 2016-04-28 13:36:05 -07:00
net_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
profile Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
script Simplify TOML syntax 2016-04-26 23:51:36 +02:00
style Auto merge of #10855 - servo:unit, r=nox 2016-04-28 07:16:57 -07:00
util Simplify TOML syntax 2016-04-26 23:51:36 +02:00