cvs: pear /Image_GraphViz GraphViz.php
| From: | Hartmut Holzgraefe | Date: | Mon, 10 Feb 2003 00:37:09 +0000 |
| Subject: | cvs: pear /Image_GraphViz GraphViz.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8791@lists.php.net to get a copy of this message | ||
hholzgra Sun Feb 9 19:37:09 2003 EDT
Modified files:
/pear/Image_GraphViz GraphViz.php
Log:
the mime type for .jpg files is image/jpeg, not image/jpg
Index: pear/Image_GraphViz/GraphViz.php
diff -u pear/Image_GraphViz/GraphViz.php:1.14 pear/Image_GraphViz/GraphViz.php:1.15
--- pear/Image_GraphViz/GraphViz.php:1.14 Sat Jan 4 06:55:29 2003
+++ pear/Image_GraphViz/GraphViz.php Sun Feb 9 19:37:09 2003
@@ -13,7 +13,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +---------------------------------------------------------------------------+
//
-// $Id: GraphViz.php,v 1.14 2003/01/04 11:55:29 mj Exp $
+// $Id: GraphViz.php,v 1.15 2003/02/10 00:37:09 hholzgra Exp $
//
/**
@@ -106,10 +106,14 @@
switch ($format) {
case 'gif':
- case 'jpg':
case 'png':
case 'wbmp': {
header('Content-Type: image/' . $format);
+ }
+ break;
+
+ case 'jpg': {
+ header('Content-Type: iamge/jpeg');
}
break;