Skip to content

Commit bf2a238

Browse files
authored
Pass -UseBasicParsing for Invoke-WebRequest calls in powershell (#676)
1 parent a9e1434 commit bf2a238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet-install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function Measure-Action($name, $block) {
185185

186186
function Get-Remote-File-Size($zipUri) {
187187
try {
188-
$response = Invoke-WebRequest -Uri $zipUri -Method Head
188+
$response = Invoke-WebRequest -UseBasicParsing -Uri $zipUri -Method Head
189189
$fileSize = $response.Headers["Content-Length"]
190190
if ((![string]::IsNullOrEmpty($fileSize))) {
191191
Say "Remote file $zipUri size is $fileSize bytes."

0 commit comments

Comments
 (0)