aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/mime_classifier.rs
Commit message (Collapse)AuthorAgeFilesLines
* Further changes required by ServoOriol Brufau2023-05-191-0/+2
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+4
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-1/+1
|
* Format remaining filesPyfisch2018-11-061-4/+3
|
* Rustfmt net cratePyfisch2018-11-031-175/+211
|
* Update hyper to 0.12Bastien Orivel2018-11-011-132/+112
|
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Remove usage of unstable box syntax, except in the script crateSimon Sapin2017-10-121-48/+48
| | | | | … because there’s a lot of it, and script still uses any other unstable features anyway.
* UntrySimon Sapin2017-06-181-9/+9
|
* Fix indentation errors in servo rust code that tidy now finds.coalman2017-04-181-1/+1
|
* Auto merge of #13411 - frewsxcv:mime, r=jdmbors-servo2016-10-081-82/+86
|\ | | | | | | | | | | | | | | | | | | | | 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 -->
| * Migrate mime_classifier top-level string to enum.Corey Farwell2016-10-081-82/+86
| |
* | Fix capitalization for enum variants.Corey Farwell2016-10-081-11/+11
|/
* Rename `MIMEClassifier` to match Rust acronym naming conventions.Corey Farwell2016-07-021-14/+14
| | | | e.g. `std::net::TcpStream`
* Create type alias for MIME type.Corey Farwell2016-07-021-13/+15
|
* Remove empty lines following braces.Josh Matthews2016-05-271-3/+0
|
* Use constructor pattern for `ApacheFlag` enum.Corey Farwell2016-04-151-0/+14
|
* Fix PDF signature to match specJonathan Giddy2016-02-231-2/+2
|
* Add check that ByteMatcher pattern has the mask appliedJonathan Giddy2016-02-231-1/+9
|
* Fix off-by-one error in MIME pattern matchingJonathan Giddy2016-02-231-6/+10
| | | | | | This adds a size to the test webp file, since the error fixed occurs when the test object is the same length as the matched pattern, and is not equal to the pattern.
* Use content-type for error messageJonathan Giddy2016-02-231-1/+4
|
* Ogg has a 5-byte signature, but pattern did not include NULJonathan Giddy2016-02-191-2/+2
|
* Fix invalid MIME checkersJonathan Giddy2016-02-191-3/+3
|
* Add validation code for MIME checkersJonathan Giddy2016-02-191-0/+48
|
* Remove extra mask byte in MIME type detectionJonathan Giddy2016-02-141-1/+1
|
* Calculate mp4 header length correctly.Jonathan Giddy2016-02-121-2/+2
|
* Remove unneeded dead_code annotations.Josh Matthews2015-12-311-10/+0
|
* Use valid MIME types in the font classifier.Josh Matthews2015-12-311-3/+3
|
* Resolves #4183 - Implemementing context-based MIME type sniffingDavid Rajchenbach-Teller2015-12-311-25/+102
| | | | | 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 .
* adding tidy rule to warn against use of &String and refactoring instances of ↵jmr02015-11-251-2/+2
| | | | &String in codebase
* MIMEClassifier::classify always succeeds; fix the type to reflect this.Eli Friedman2015-10-131-11/+10
|
* Fix BinaryOrPLaintextClassifier bug with utf16-be & utf16-le and correct testsMathieu Rheaume2015-09-121-3/+2
|
* fixup! Issue #7382 Use descriptive enums instead of booleans for ↵Mathieu Rheaume2015-09-121-8/+13
| | | | MIMEClassifier::classifer
* Issue #7382 Use descriptive enums instead of booleans for ↵Mathieu Rheaume2015-09-121-35/+82
| | | | MIMEClassifier::classifer
* Issue #7393: Properly sniff mislabeled feeds.Simon Martin2015-08-301-6/+15
|
* Refactor mime_classifierJohann Tuffe2015-08-281-171/+139
| | | | Use more iterators in particular.
* Fixed mismatched type errorSara Tang2015-08-241-1/+1
|
* Fixes for issue #7347Sara Tang2015-08-241-4/+4
|
* Fix existing syntactics nits.Josh Matthews2015-08-161-110/+110
|
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-1/+1
| | | | closes #7197
* MIME classifier should use &[T] instead of &Vec<T>Adrián Arroyo Calle2015-08-101-14/+14
|
* Remove is_some() from mime_classifier.rs and fix typo "uknown" -> "unknown"Pyfisch2015-06-231-33/+22
|
* Remove some as_slice calls.Ms2ger2015-04-241-3/+3
|
* Fix some irregular indentation.Mátyás Mustoha2015-04-221-12/+12
|
* move mime classifier unit tests into unit test crateEdward Cho2015-04-131-437/+3
|
* Fix int-related warnings in net/mime_classifier.Mátyás Mustoha2015-04-081-11/+11
|
* Cleanup tabs.Josh Matthews2015-04-071-6/+6
|
* Fix unit tests.Josh Matthews2015-04-071-16/+13
|
* Enable MIME sniffing for HTTP loads.Josh Matthews2015-04-071-2/+0
|