Permalink
Browse files

Fix Content-Type header for SVG images.

git-svn-id: http://svn.php.net/repository/pear/packages/Image_GraphViz/trunk@109301 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ddf9da2 commit 43071ca1e8e75ebbb1a2949fecaec5d0c670ea23 @sebastianbergmann sebastianbergmann committed Dec 29, 2002
Showing with 23 additions and 8 deletions.
  1. +5 −1 GraphViz.php
  2. +18 −7 package.xml
View
@@ -108,7 +108,6 @@ function image($format = 'svg') {
case 'gif':
case 'jpg':
case 'png':
- case 'svg':
case 'wbmp': {
header('Content-Type: image/' . $format);
}
@@ -118,6 +117,11 @@ function image($format = 'svg') {
header('Content-Type: application/pdf');
}
break;
+
+ case 'svg': {
+ header('Content-Type: image/svg+xml');
+ }
+ break;
}
header('Content-Length: ' . filesize($outputfile));
View
@@ -19,16 +19,12 @@
</maintainers>
<license>PHP License</license>
<release>
- <version>1.0.1</version>
- <date>2002-12-11</date>
+ <version>1.0.2</version>
+ <date>200X-XX-XX</date>
<state>stable</state>
<notes>
<![CDATA[
-+ Nodes can be grouped now by passing a group name as 3rd parameter
- to the addNode() method.
-
-+ The new addCluster() method can be used to give a label to a
- group of nodes and let GraphViz treat it as a node cluster.
+* Fixed Content-Type header for SVG images.
]]>
</notes>
<filelist>
@@ -37,6 +33,21 @@
</dir>
</filelist>
</release>
+ <changelog>
+ <release>
+ <version>1.0.1</version>
+ <date>2002-12-11</date>
+ <state>stable</state>
+ <notes>
+<![CDATA[
++ Nodes can be grouped now by passing a group name as 3rd parameter
+ to the addNode() method.
+
++ The new addCluster() method can be used to give a label to a
+ group of nodes and let GraphViz treat it as a node cluster.
+]]>
+ </notes>
+ </release>
<changelog>
<release>
<version>1.0</version>

0 comments on commit 43071ca

Please sign in to comment.