diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index dc905c7db..5f5c01418 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -546,8 +546,8 @@ FW_serveSpecial($$$$) $file = "$FW_sp$file" if($ext eq "css" && -f "$dir/$FW_sp$file.$ext"); $FW_RETTYPE = ext2MIMEType($ext); - return FW_returnFileAsStream("$dir/$file.$ext", "", - $FW_RETTYPE, 0, $cacheable); + my $fname = ($ext ? "$file.$ext" : $file); + return FW_returnFileAsStream("$dir/$fname", "", $FW_RETTYPE, 0, $cacheable); } sub @@ -614,7 +614,8 @@ FW_answerCall($) # pgm2 check is for jquery-ui images my $static = ($ext =~ m/(css|js|png|jpg)/i || $dir =~ m/^pgm2/); - if(-r "$ldir/$file.$ext" || $static) { # no return for FLOORPLAN + my $fname = ($ext ? "$file.$ext" : $file); + if(-r "$ldir/$fname" || $static) { # no return for FLOORPLAN return FW_serveSpecial($file, $ext, $ldir, ($arg =~ m/nocache/) ? 0 : 1); } $arg = "/$dir/$ofile"; diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm index 255fe41dc..43e8dbba6 100644 --- a/fhem/FHEM/98_update.pm +++ b/fhem/FHEM/98_update.pm @@ -500,7 +500,7 @@ upd_getUrl($) my ($url) = @_; $url =~ s/%/%25/g; $upd_connecthash{url} = $url; - $upd_connecthash{keepalive} = 1; + $upd_connecthash{keepalive} = ($url =~ m/localUpdate/ ? 0 : 1); # Forum #49798 # $upd_connecthash{compress} = 1; # fhem.de does not support compression my ($err, $data) = HttpUtils_BlockingGet(\%upd_connecthash); if($err) {