2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

01_FHEMWEB.pm: fix for 404 (Forum #52191)

git-svn-id: https://svn.fhem.de/fhem/trunk@11253 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-04-16 17:54:36 +00:00
parent 5a196dab1c
commit 067b63e044

View File

@ -1684,7 +1684,7 @@ FW_returnFileAsStream($$$$$)
"HTTP/1.1 404 Not Found\r\n".
"Content-Length:0\r\n\r\n");
FW_closeConn($FW_chash);
return 0;
return -1;
}
binmode(FH) if($type !~ m/text/); # necessary for Windows
my $sz = -s $path;