Skip to content

Commit

Permalink
Merge pull request #4 from webdevel/master
Browse files Browse the repository at this point in the history
Added the SVG content-type and ID to the list of supported image formats
  • Loading branch information
billf committed Feb 15, 2012
2 parents a6bae51 + 6e987c7 commit 469fe5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xhprof_lib/utils/callgraph_utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"jpg" => 1,
"gif" => 1,
"png" => 1,
"svg" => 1, // support scalable vector graphic
"ps" => 1,
);

Expand Down Expand Up @@ -68,6 +69,9 @@ function xhprof_generate_mime_header($type, $length) {
case 'png':
$mime = 'image/png';
break;
case 'svg':
$mime = 'image/svg+xml'; // content type for scalable vector graphic
break;
case 'ps':
$mime = 'application/postscript';
default:
Expand Down

0 comments on commit 469fe5a

Please sign in to comment.