Skip to content

Commit f889c90

Browse files
committed
ci: add wget headers
1 parent ea6be3a commit f889c90

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ jobs:
3838
3939
- name: Download WTL and nlohmann/json
4040
run: |
41-
(New-Object System.Net.WebClient).DownloadFile("https://downloads.sourceforge.net/project/wtl/WTL%2010/WTL%2010.01%20Release/WTL10_01_Release.zip", "${{ runner.temp }}\wtl.zip")
41+
$wc = New-Object System.Net.WebClient
42+
$wc.Headers.Add("User-Agent", "Wget/1.21.1")
43+
$wc.Headers.Add("Accept", "*/*")
44+
$wc.Headers.Add("Connection", "keep-alive")
45+
$wc.DownloadFile("https://downloads.sourceforge.net/project/wtl/WTL%2010/WTL%2010.01%20Release/WTL10_01_Release.zip", "${{ runner.temp }}\wtl.zip")
4246
7z x "${{ runner.temp }}\wtl.zip" -o"lib\WTL" > nul
4347
4448
New-Item -ItemType Directory -Force -Path "lib\nlohmann"

0 commit comments

Comments
 (0)