2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

70_PHTV: explicit digest auth (HttpUtils patch pending)

git-svn-id: https://svn.fhem.de/fhem/trunk@13473 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-02-20 19:08:33 +00:00
parent 8d41b04a2e
commit 8e0b8ef082

View File

@ -1566,7 +1566,7 @@ sub PHTV_SendCommand($$;$$$) {
$URL = "http://";
$URL = "https://" if ( $protoV > 5 || $address =~ m/^.+:1926$/ );
$URL .= "$auth@" if($auth);
$URL .= "$auth@" if ($auth);
$URL .= $address . "/" . $protoV . "/" . $service;
$timeout = AttrVal( $name, "httpTimeout", AttrVal( $name, "timeout", 7 ) );
@ -1585,6 +1585,7 @@ sub PHTV_SendCommand($$;$$$) {
url => $URL,
hideauth => 1,
auth => $auth,
digest => 1,
timeout => $timeout,
data => $data,
hash => $hash,