Giter Site home page Giter Site logo

Comments (7)

peter279k avatar peter279k commented on July 26, 2024 1

@ralouphie, thanks for your reply.

According to the httpd mime type doc, it seems that this zip is different mime types.

They're as follows:

  • application/zip zip
  • # application/gzip

Do you mean the # application/gzip is customized mapping?

If yes, and I think you're right. And this issue will be closed :).

from mimey.

peter279k avatar peter279k commented on July 26, 2024

That's a good catch I think and it should be fixed :).

The zip and gzip are different MIME types.

from mimey.

peter279k avatar peter279k commented on July 26, 2024

@ralouphie, do you have any idea about this :)?

from mimey.

ralouphie avatar ralouphie commented on July 26, 2024

This repository is meant to be a wrapper for httpd's mime types mapping. If a different mapping is needed, please leverage the custom mappings capability described in the documentation.

from mimey.

sybbear avatar sybbear commented on July 26, 2024

Hi @ralouphie
According to the httpd mime doc @peter279k mentioned, mime type for zip extension should be application/zip
zip files are widespread and are important part of web services, so I see it as important to resolve.

Would you let us know what's needed to help progress resolution of this issue, a PR? :)

from mimey.

peter279k avatar peter279k commented on July 26, 2024

It seems that the repository owner doesn't concern this PR for about whiles.

And I think it should add some collaborator on this repository.

from mimey.

neilberry001 avatar neilberry001 commented on July 26, 2024

Ran into this issue also as the method forces the value at ZERO pointer.

https://github.com/ralouphie/mimey/blob/develop/src/MimeTypes.php#L52

The non-standard x-gzip should arguably be at the end of this array or advised use of getAllMimeTypes in all cases.

https://github.com/ralouphie/mimey/blob/develop/mime.types.php#L32

    'zip' => 
    array (
      0 => 'application/x-gzip',
      1 => 'application/zip',
    ),

from mimey.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.