Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit 58e8fc6

Browse files
muzzar78alerickson
authored andcommitted
Fix for not being able to register PSGallery repository behind web proxy (#410)
1 parent 9e3b40f commit 58e8fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellGet/private/functions/Resolve-Location.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function Resolve-Location
6262

6363
Write-Debug -Message "Ping-Endpoint: location=$Location, statuscode=$statusCode, resolvedLocation=$resolvedLocation"
6464

65-
if((($statusCode -eq 200) -or ($statusCode -eq 401)) -and $resolvedLocation)
65+
if((($statusCode -eq 200) -or ($statusCode -eq 401) -or ($statusCode -eq 407)) -and $resolvedLocation)
6666
{
6767
return $resolvedLocation
6868
}

0 commit comments

Comments
 (0)