Skip to content

Commit

Permalink
minor #26191 [HttpFoundation] Add x-zip-compressed to MimeTypeExtensi…
Browse files Browse the repository at this point in the history
…onGuesser. (jenkoian)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Add x-zip-compressed to MimeTypeExtensionGuesser.

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | yes (kinda)
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Zip files uploaded on Windows often have a mime type of `x-zip-compressed`. This patch adds support for this mime type to `MimeTypeExtensionGuesser`.

The mime type seems to be a valid mime type for zip files according to http://filext.com/file-extension/ZIP

Commits
-------

ba3e19a [HttpFoundation] Add x-zip-compressed to MimeTypeExtensionGuesser.
  • Loading branch information
fabpot committed Feb 16, 2018
2 parents 800cadf + ba3e19a commit 233774c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -599,6 +599,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
'application/x-xliff+xml' => 'xlf',
'application/x-xpinstall' => 'xpi',
'application/x-xz' => 'xz',
'application/x-zip-compressed' => 'zip',
'application/x-zmachine' => 'z1',
'application/xaml+xml' => 'xaml',
'application/xcap-diff+xml' => 'xdf',
Expand Down

0 comments on commit 233774c

Please sign in to comment.