Skip to content

Commit 8f5a042

Browse files
authored
Merge pull request #11835 from ethereum/fix-boost-download-from-jfrog-in-powershell
Use empty user agent when downloading Boost from jfrog in powershell
2 parents a6683e3 + bc68e95 commit 8f5a042

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/install_deps.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
1010
tar -xf cmake.zip
1111
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake"
1212

13-
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip
13+
# FIXME: The default user agent results in Artifactory treating Invoke-WebRequest as a browser
14+
# and serving it a page that requires JavaScript.
15+
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip -UserAgent ""
1416
tar -xf boost.zip
1517
cd boost_1_74_0
1618
.\bootstrap.bat

0 commit comments

Comments
 (0)