Skip to content

Commit

Permalink
Fix proxy url handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-peterson committed Aug 28, 2024
1 parent b4676e5 commit d254b82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GitlabCli/GitlabCli.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ModuleVersion = '1.117.0'
ModuleVersion = '1.117.1'

RequiredModules = @('powershell-yaml')

Expand Down
7 changes: 5 additions & 2 deletions src/GitlabCli/Utilities.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@ function Invoke-GitlabApi {
Method = $HttpMethod
Uri = "$GitlabUrl/api/$Api/$Path$SerializedQuery"
Header = $Headers
Proxy = $ProxyUrl ?? $Site.ProxyUrl
}
$Proxy = $ProxyUrl ?? $Site.ProxyUrl
if (-not [string]::IsNullOrWhiteSpace($Proxy)) {
Write-Verbose "Using proxy $Proxy"
}
if($MaxPages -gt 1) {
$RestMethodParams.FollowRelLink = $true
$RestMethodParams.FollowRelLink = $true
$RestMethodParams.MaximumFollowRelLink = $MaxPages
}
if ($Body.Count -gt 0) {
Expand Down

0 comments on commit d254b82

Please sign in to comment.