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 12489da441
commit aa28f60af9

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;