Added the SVG content-type and ID to the list of supported image formats #4

Merged
merged 1 commit into from Feb 15, 2012
@@ -25,6 +25,7 @@
"jpg" => 1,
"gif" => 1,
"png" => 1,
+ "svg" => 1, // support scalable vector graphic
"ps" => 1,
);
@@ -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: