servo/components/net
bors-servo 9f85370885 Auto merge of #7449 - simartin:issue_7393, r=metajack
Issue #7393: Properly sniff mislabeled feeds.

Hi,

This patch is an attempt to fix https://github.com/servo/servo/issues/7393, where the code detecting mislabeled feeds (see https://mimesniff.spec.whatwg.org/#sniffing-a-mislabeled-feed) had spurious space in the URLs we need to match.

Note that my testing (in particular rdf_rss_ko_2.xml) highlighted a flaw in "matches", that failed to check that there were more bytes in the string being checked than in the string we're checking against, which completely broke the whole step 5.2.7.

Thanks in advance for your review.

Cheers,
  Simon

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7449)
<!-- Reviewable:end -->
2015-09-01 11:22:52 -06:00
..
fetch sort all uses 2015-08-20 20:47:12 +08:00
about_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
Cargo.toml script: Make the resource task communication use IPC channels. 2015-07-31 11:28:09 -07:00
cookie.rs sort all uses 2015-08-20 20:47:12 +08:00
cookie_storage.rs sort all uses 2015-08-20 20:47:12 +08:00
data_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
file_loader.rs sort all uses 2015-08-20 20:47:12 +08:00
hsts.rs sort all uses 2015-08-20 20:47:12 +08:00
http_loader.rs Removing unnecessary url clones 2015-09-01 13:44:54 +05:30
image_cache_task.rs sort all uses 2015-08-20 20:47:12 +08:00
lib.rs Move net_error_list from net to net_traits. Fixes #7050. 2015-08-06 16:37:08 -05:00
mime_classifier.rs Issue #7393: Properly sniff mislabeled feeds. 2015-08-30 13:03:20 +02:00
pub_domains.rs Fix existing syntactics nits. 2015-08-16 10:30:43 -04:00
resource_task.rs Only use the resource manager's HSTS list. 2015-08-30 12:14:02 +10:00
storage_task.rs net: Convert the storage task to use IPC. 2015-07-26 17:07:17 -07:00