Better content-type for icons: Firefox@Windows has problems with image/*

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@421 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2009-08-05 13:03:46 +00:00
parent 6b075c327d
commit 36fc8df726

View File

@@ -240,7 +240,8 @@ FW_AnswerCall($)
binmode (FH); # necessary for Windows
pO join("", <FH>);
close(FH);
$__RETTYPE = "image/*";
my @f_ext = split(/\./,$1); #kpb
$__RETTYPE = "image/$f_ext[-1]";
return 1;
} elsif($arg !~ m/^$__ME(.*)/) {
Log(5, "Unknown document $arg requested");