From: Christian Weiske Date: Wed, 29 Jun 2016 19:30:05 +0000 (+0200) Subject: Fix .pdf MIME type X-Git-Tag: v0.3.0~5 X-Git-Url: https://git.cweiske.de/phancap.git/commitdiff_plain/e68a775f8922b93164efb3bc997941fbad816ba2 Fix .pdf MIME type --- diff --git a/src/phancap/Image.php b/src/phancap/Image.php index 15263c2..5a497cc 100644 --- a/src/phancap/Image.php +++ b/src/phancap/Image.php @@ -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';