From a6cbfa854da9adde89efa9fea1a3e638bed006a9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 12 Jun 2021 10:13:25 +0000 Subject: [PATCH] HttpUtils.pm: print protocol when debugging git-svn-id: https://svn.fhem.de/fhem/trunk@24618 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/HttpUtils.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index 785eaf12f..0dcf82570 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -335,9 +335,6 @@ HttpUtils_Connect($) $hash->{displayurl} = $hash->{hideurl} ? "" : $hash->{url}; $hash->{sslargs} = {} if(!defined($hash->{sslargs})); - Log3 $hash, $hash->{loglevel}+1, "HttpUtils url=$hash->{displayurl}" - .($hash->{callback} ? " NonBlocking":" Blocking"); - if($hash->{url} !~ / ^(http|https):\/\/ # $1: proto (([^:\/]+):([^:\/]+)@)? # $2: auth, $3:user, $4:password @@ -352,7 +349,7 @@ HttpUtils_Connect($) ($hash->{protocol},$authstring,$user,$pwd,$host,$port,$hash->{path}) = (lc($1),$2,$3,$4,$5,$6,$7); $hash->{host} = $host; - + if(defined($port)) { $port =~ s/^://; } else { @@ -373,6 +370,8 @@ HttpUtils_Connect($) $hash->{auth} = 0; } + Log3 $hash, $hash->{loglevel}+1, "HttpUtils url=$hash->{displayurl}" + .($hash->{callback} ? " NonBlocking":" Blocking")." via ".$hash->{protocol}; my $proxy = AttrVal("global", "proxy", undef); if($proxy) {