mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Fixed WebRequest init (#40641)
This commit is contained in:
parent
d04a989bd2
commit
4fbdc1a497
1 changed files with 2 additions and 2 deletions
|
@ -62,9 +62,9 @@ Function CheckModified-File($url, $dest, $headers, $credentials, $timeout, $use_
|
||||||
|
|
||||||
if ($credentials) {
|
if ($credentials) {
|
||||||
if ($force_basic_auth) {
|
if ($force_basic_auth) {
|
||||||
$extWebClient.Headers.Add("Authorization","Basic $credentials")
|
$webRequest.Headers.Add("Authorization", "Basic $credentials")
|
||||||
} else {
|
} else {
|
||||||
$extWebClient.Credentials = $credentials
|
$webRequest.Credentials = $credentials
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue