Skip to content

Commit 4bd42b6

Browse files
authored
Merge pull request #12 from php-http/separate-types
Moved non-apache mime types to the bottom
2 parents 8a9b687 + a8fa7ab commit 4bd42b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ApacheMimetypeHelper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public function getMimetypeFromExtension($extension)
9191
'pbm' => 'image/x-portable-bitmap',
9292
'pdf' => 'application/pdf',
9393
'pgm' => 'image/x-portable-graymap',
94-
'pkpass' => 'application/vnd.apple.pkpass',
9594
'png' => 'image/png',
9695
'pnm' => 'image/x-portable-anymap',
9796
'ppm' => 'image/x-portable-pixmap',
@@ -128,6 +127,9 @@ public function getMimetypeFromExtension($extension)
128127
'yaml' => 'text/yaml',
129128
'yml' => 'text/yaml',
130129
'zip' => 'application/zip',
130+
131+
// Non-Apache standard
132+
'pkpass' => 'application/vnd.apple.pkpass',
131133
'msg' => 'application/vnd.ms-outlook',
132134
];
133135

0 commit comments

Comments
 (0)