mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
HttpUtils.pm: print protocol when debugging
git-svn-id: https://svn.fhem.de/fhem/trunk@24618 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7be2954173
commit
a6cbfa854d
@ -335,9 +335,6 @@ HttpUtils_Connect($)
|
|||||||
$hash->{displayurl} = $hash->{hideurl} ? "<hidden>" : $hash->{url};
|
$hash->{displayurl} = $hash->{hideurl} ? "<hidden>" : $hash->{url};
|
||||||
$hash->{sslargs} = {} if(!defined($hash->{sslargs}));
|
$hash->{sslargs} = {} if(!defined($hash->{sslargs}));
|
||||||
|
|
||||||
Log3 $hash, $hash->{loglevel}+1, "HttpUtils url=$hash->{displayurl}"
|
|
||||||
.($hash->{callback} ? " NonBlocking":" Blocking");
|
|
||||||
|
|
||||||
if($hash->{url} !~ /
|
if($hash->{url} !~ /
|
||||||
^(http|https):\/\/ # $1: proto
|
^(http|https):\/\/ # $1: proto
|
||||||
(([^:\/]+):([^:\/]+)@)? # $2: auth, $3:user, $4:password
|
(([^:\/]+):([^:\/]+)@)? # $2: auth, $3:user, $4:password
|
||||||
@ -373,6 +370,8 @@ HttpUtils_Connect($)
|
|||||||
$hash->{auth} = 0;
|
$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);
|
my $proxy = AttrVal("global", "proxy", undef);
|
||||||
if($proxy) {
|
if($proxy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user