From f2165e976a2a3777f31a7a457142e4eee5271b33 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Fri, 5 Dec 2014 21:00:19 +0000 Subject: [PATCH] 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 --- fhem/FHEM/HttpUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index 6a680a449..acf58b75e 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -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); }