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

Fix for not being able to register PSGallery repository behind web proxy #410

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PowerShellGet/private/functions/Resolve-Location.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Resolve-Location

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

if((($statusCode -eq 200) -or ($statusCode -eq 401)) -and $resolvedLocation)
if((($statusCode -eq 200) -or ($statusCode -eq 401) -or ($statusCode -eq 407)) -and $resolvedLocation)
{
return $resolvedLocation
}
Expand Down