Fix .pdf MIME type
authorChristian Weiske <cweiske@cweiske.de>
Wed, 29 Jun 2016 19:30:05 +0000 (21:30 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 29 Jun 2016 19:30:05 +0000 (21:30 +0200)
src/phancap/Image.php

index 15263c2..5a497cc 100644 (file)
@@ -77,7 +77,7 @@ class Image
             return 'image/jpeg';
         } else if ($ext == '.png') {
             return 'image/png';
-        } else if ($ext == '.png') {
+        } else if ($ext == '.pdf') {
             return 'application/pdf';
         }
         return 'application/octet-stream';