Skip to content

Commit f42e0f2

Browse files
committed
ci(appveyor): send User-Agent header
empty User-Agents were blocked
1 parent ecb4199 commit f42e0f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

appveyor-install.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $ErrorActionPreference = 'Stop'
22

33
# Install PHP
44
$client = New-Object System.Net.WebClient
5+
$client.Headers.Add('User-Agent', "AppVeyor CI PowerShell $($PSVersionTable.PSVersion) $([Environment]::OSVersion.VersionString)")
56
$phpUrl = "http://windows.php.net/downloads/releases/php-$env:PHP_VERSION-nts-Win32-VC$env:VC_VERSION-x86.zip"
67
$target = Join-Path $PWD 'php.zip'
78
Write-Output "Downloading $phpUrl"

0 commit comments

Comments
 (0)