2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

HttpUtils.pm: call the callback if it is a file URL.

git-svn-id: https://svn.fhem.de/fhem/trunk@7134 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-12-05 21:00:19 +00:00
parent 7c6e265b1a
commit cb1bb23e90

View File

@ -354,7 +354,7 @@ HttpUtils_NonblockingGet($)
{
my ($hash) = @_;
my ($isFile, $fErr, $fContent) = HttpUtils_File($hash);
return ($fErr, $fContent) if($isFile);
return $hash->{callback}($hash, $fErr, $fContent) if($isFile);
my $err = HttpUtils_Connect($hash);
$hash->{callback}($hash, $err, "") if($err);
}