Permalink
Browse files

the mime type for .jpg files is image/jpeg, not image/jpg

git-svn-id: http://svn.php.net/repository/pear/packages/Image_GraphViz/trunk@115478 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 60b72ca commit 5a86a8b71398361388259346d6b0963799737d82 Hartmut Holzgraefe committed Feb 10, 2003
Showing with 5 additions and 1 deletion.
  1. +5 −1 GraphViz.php
View
@@ -106,13 +106,17 @@ function image($format = 'svg') {
switch ($format) {
case 'gif':
- case 'jpg':
case 'png':
case 'wbmp': {
header('Content-Type: image/' . $format);
}
break;
+ case 'jpg': {
+ header('Content-Type: iamge/jpeg');
+ }
+ break;
+
case 'pdf': {
header('Content-Type: application/pdf');
}

0 comments on commit 5a86a8b

Please sign in to comment.