- Code: Select all
Index: src/client/proxy.php.tpl
===================================================================
--- src/client/proxy.php.tpl (revision 1893)
+++ src/client/proxy.php.tpl (working copy)
@@ -35,6 +35,10 @@
$contenttype = "text/javascript";
else if (preg_match("/.css$/", $file))
$contenttype = "text/css";
+else if (preg_match("/.gif$/", $file))
+ $contenttype = "image/gif";
+else if (preg_match("/.jpg$/", $file))
+ $contenttype = "image/jpeg";
header("Content-Length: ".$contentlength);
header("Content-Type: ".$contenttype);
session_cache_limiter('public');
This seems like the right thing.
Also, I think it should be ".xxx$" not ".xxx$", but I didn't change it.