Simon Sapin
316cd35767
Untry
2017-06-18 13:21:51 +02:00
bors-servo
b1d8eff467
Auto merge of #13411 - frewsxcv:mime, r=jdm
...
Migrate mime_classifier top-level string to enum.
I made this branch months ago and forgot about it. Instead of just throwing the changes away, I rebased off origin/master and opened this pull request. If these changes aren't desired, no feelings hurt, just close this. If they are desired, let me know if there are any changes you want me to make and I'll also need to rewrite/squash the commits.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13411 )
<!-- Reviewable:end -->
2016-10-08 15:40:47 -05:00
Corey Farwell
349e01f6eb
Fix capitalization for enum variants.
2016-10-08 15:48:18 -04:00
Corey Farwell
66303e40b5
Migrate mime_classifier top-level string to enum.
2016-10-08 15:41:58 -04:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Corey Farwell
6c02a576cf
Rename MIMEClassifier
to match Rust acronym naming conventions.
...
e.g. `std::net::TcpStream`
2016-07-02 17:12:46 -04:00
Jonathan Giddy
208bae7f2e
Add validation code for MIME checkers
2016-02-19 13:11:13 +00:00
Jonathan Giddy
ec0ea465ec
Calculate mp4 header length correctly.
2016-02-12 17:39:34 +00:00
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
The version of the standard is not finalized at the time of this writing.
Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .
2015-12-31 07:45:03 -05:00
Eli Friedman
1c4962288c
MIMEClassifier::classify always succeeds; fix the type to reflect this.
2015-10-13 18:03:40 -07:00
Mathieu Rheaume
cc44448b09
Fix BinaryOrPLaintextClassifier bug with utf16-be & utf16-le and correct tests
2015-09-12 19:59:20 -04:00
Mathieu Rheaume
68a088bef6
Fixed apache bug flag on not passing the good params
2015-09-12 17:44:16 -04:00
Mathieu Rheaume
ff608de781
fixup! Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer
2015-09-12 17:44:16 -04:00
Mathieu Rheaume
8525495265
Issue #7382 Use descriptive enums instead of booleans for MIMEClassifier::classifer
2015-09-12 17:44:14 -04:00
Simon Martin
5301e59965
Issue #7393 : Properly sniff mislabeled feeds.
2015-08-30 13:03:20 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Simon Sapin
ce1f2bab7b
Fix up the splitting of the unit tests crate.
...
Closes #5707 . (Includes a rebase of it.)
Fixes #5688 .
2015-04-21 20:22:10 +02:00
Marcus Klaas
0d482e36e6
Fix compiler warnings in net unit tests
2015-04-17 16:44:51 +02:00
Ms2ger
306da57b07
Move mime classifier resources near the test.
2015-04-16 11:12:32 +02:00
Edward Cho
d0469dfaf3
move mime classifier unit tests into unit test crate
2015-04-13 15:40:30 -05:00