2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

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

git-svn-id: https://svn.fhem.de/fhem/trunk@421 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-08-05 13:03:46 +00:00
parent 2db7a97db2
commit e180de03d8

View File

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