2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

01_FHEMWEB.pm: check for defined FW_useragent (Forum #41901)

git-svn-id: https://svn.fhem.de/fhem/trunk@9397 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-10-07 11:42:34 +00:00
parent 462b6185e4
commit 06186947bf

View File

@ -479,7 +479,7 @@ FW_closeConn($)
my ($hash) = @_;
if(!$hash->{inform} && !$hash->{BUF}) { # Forum #41125
my $cc = AttrVal($hash->{SNAME}, "closeConn",
$FW_userAgent=~m/(iPhone|iPad|iPod)/);
$FW_userAgent && $FW_userAgent=~m/(iPhone|iPad|iPod)/);
if(!$FW_httpheader{Connection} || $cc) {
TcpServer_Close($hash);
delete($defs{$hash->{NAME}});