mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
HttpUtils.pm: do not send Basic-Header if auth is digest (Forum #43043)
git-svn-id: https://svn.fhem.de/fhem/trunk@13474 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8e0b8ef082
commit
61637639f4
@ -391,7 +391,7 @@ HttpUtils_Connect2($)
|
||||
if($httpVersion ne "1.0" && !$hash->{keepalive});
|
||||
|
||||
$hdr .= "Authorization: Basic ".encode_base64($hash->{auth}, "")."\r\n"
|
||||
if(defined($hash->{auth}) &&
|
||||
if(defined($hash->{auth}) && !$hash->{digest} &&
|
||||
!($hash->{header} &&
|
||||
$hash->{header} =~ /^Authorization:\s*Digest/mi));
|
||||
$hdr .= $hash->{header}."\r\n" if($hash->{header});
|
||||
@ -676,7 +676,7 @@ HttpUtils_ParseAnswer($)
|
||||
# mandatory:
|
||||
# url, callback
|
||||
# optional(default):
|
||||
# hideurl(0),timeout(4),data(""),loglevel(4),header("" or HASH),
|
||||
# digest(0),hideurl(0),timeout(4),data(""),loglevel(4),header("" or HASH),
|
||||
# noshutdown(1),shutdown(0),httpversion("1.0"),ignoreredirects(0)
|
||||
# method($data ? "POST" : "GET"),keepalive(0),sslargs({})
|
||||
# Example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user