Skip to content

Commit

Permalink
Update Get-SourceForgeRepoRelease.ps1
Browse files Browse the repository at this point in the history
Use a custom useragent #763
  • Loading branch information
aaronparker committed Oct 29, 2024
1 parent 27e3185 commit 54c6a23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Evergreen/Shared/Get-SourceForgeRepoRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
)

# Retrieve best release json
$BestRelease = Invoke-EvergreenRestMethod -Uri $Uri
$params = @{
Uri = $Uri
UserAgent = "Evergreen/$((Get-Module -Name "Evergreen").Version)"
}
$BestRelease = Invoke-EvergreenRestMethod @params

# Validate that $BestRelease has the expected properties
Write-Verbose -Message "$($MyInvocation.MyCommand): Validating SourceForge release object."
Expand Down

0 comments on commit 54c6a23

Please sign in to comment.