Skip to content
#

mime-types

Here are 133 public repositories matching this topic...

halostatue
halostatue commented Oct 29, 2014

Right now, MIME::Types has two main representations of a MIME content type:

  • content_type: a presentation value from the MIME type registry and should not be used for comparison. The case of the content type is preserved, and extension markers (x-) are kept.
  • simplified: a comparison value, mostly used for sorting. It strips extension markers (x-) and converts to lowercase. The problem h
dd8
dd8 commented Apr 10, 2018

In https://mimesniff.spec.whatwg.org/#parsing-a-mime-type the following step might be clearer if it explicitly said the trailing sequence after " was to be discarded. Might also be better if the example contains a ';' since the step mentions ';'

Current:

Collect a sequence of code points that are not U+003B (;) from input, given position.
Example: Given text/html;charset="shift_jis"iso-20

gleporeNARA
gleporeNARA commented Apr 18, 2018

Looks like a great project, but I'm having trouble changing the Extensions.java file in order to find different extensions. I couldn't find any documentation for how to accomplish this, and when I change the file and re-run ./gradlew check I get failed most of the time.

Please add documentation for how to alter the Extensions file successfully, and also how to run the code against the oldindex

rwasef1830
rwasef1830 commented Feb 28, 2020

Hello,
Using this library in a parallel loop (creating new Magic() inside the loop) was causing my app to crash randomly with a heap corruption exception code.

The documentation should be updated to mention that you cannot create new Magic instances simultaneously (or alternatively add a lock inside the constructor) to prevent random crashes for people consuming the library.

Once the separa

Improve this page

Add a description, image, and links to the mime-types topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mime-types topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.