Fixed WebRequest init (#40641)

pull/40643/head
Gyorgy Nadaban 7 years ago committed by Jordan Borean
parent d04a989bd2
commit 4fbdc1a497

@ -62,9 +62,9 @@ Function CheckModified-File($url, $dest, $headers, $credentials, $timeout, $use_
if ($credentials) {
if ($force_basic_auth) {
$extWebClient.Headers.Add("Authorization","Basic $credentials")
$webRequest.Headers.Add("Authorization", "Basic $credentials")
} else {
$extWebClient.Credentials = $credentials
$webRequest.Credentials = $credentials
}
}

Loading…
Cancel
Save