Merge pull request #11835 from ethereum/fix-boost-download-from-jfrog-in-powershell

Use empty user agent when downloading Boost from jfrog in powershell
This commit is contained in:
Kamil Śliwak
2021-08-23 22:05:28 +02:00
committed by GitHub
+3 -1
View File
@@ -10,7 +10,9 @@ if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
tar -xf cmake.zip
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake"
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip
# FIXME: The default user agent results in Artifactory treating Invoke-WebRequest as a browser
# and serving it a page that requires JavaScript.
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip -UserAgent ""
tar -xf boost.zip
cd boost_1_74_0
.\bootstrap.bat