File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,25 @@ Function Get-File {
3535 for ($i = 0 ; $i -lt $Retries ; $i ++ ) {
3636 try {
3737 if ($OutFile -ne ' ' ) {
38- Invoke-WebRequest - Uri $Url - OutFile $OutFile - TimeoutSec $TimeoutSec
38+ Invoke-WebRequest - Uri $Url - OutFile $OutFile - TimeoutSec $TimeoutSec - UseBasicParsing
3939 } else {
40- Invoke-WebRequest - Uri $Url - TimeoutSec $TimeoutSec
40+ Invoke-WebRequest - Uri $Url - TimeoutSec $TimeoutSec - UseBasicParsing
4141 }
4242 break ;
4343 } catch {
4444 if ($i -eq ($Retries - 1 )) {
4545 if ($FallbackUrl ) {
4646 try {
4747 if ($OutFile -ne ' ' ) {
48- Invoke-WebRequest - Uri $FallbackUrl - OutFile $OutFile - TimeoutSec $TimeoutSec
48+ Invoke-WebRequest - Uri $FallbackUrl - OutFile $OutFile - TimeoutSec $TimeoutSec - UseBasicParsing
4949 } else {
50- Invoke-WebRequest - Uri $FallbackUrl - TimeoutSec $TimeoutSec
50+ Invoke-WebRequest - Uri $FallbackUrl - TimeoutSec $TimeoutSec - UseBasicParsing
5151 }
5252 } catch {
53- throw " Failed to download the file from $Url and $FallbackUrl "
53+ throw " Failed to download the file from $Url and $FallbackUrl - $ ( $_ .Exception.Message ) "
5454 }
5555 } else {
56- throw " Failed to download the file from $Url "
56+ throw " Failed to download the file from $Url - $ ( $_ .Exception.Message ) "
5757 }
5858 }
5959 }
Original file line number Diff line number Diff line change @@ -35,25 +35,25 @@ Function Get-File {
3535 for ($i = 0 ; $i -lt $Retries ; $i ++ ) {
3636 try {
3737 if ($OutFile -ne ' ' ) {
38- Invoke-WebRequest - Uri $Url - OutFile $OutFile - TimeoutSec $TimeoutSec
38+ Invoke-WebRequest - Uri $Url - OutFile $OutFile - TimeoutSec $TimeoutSec - UseBasicParsing
3939 } else {
40- Invoke-WebRequest - Uri $Url - TimeoutSec $TimeoutSec
40+ Invoke-WebRequest - Uri $Url - TimeoutSec $TimeoutSec - UseBasicParsing
4141 }
4242 break ;
4343 } catch {
4444 if ($i -eq ($Retries - 1 )) {
4545 if ($FallbackUrl ) {
4646 try {
4747 if ($OutFile -ne ' ' ) {
48- Invoke-WebRequest - Uri $FallbackUrl - OutFile $OutFile - TimeoutSec $TimeoutSec
48+ Invoke-WebRequest - Uri $FallbackUrl - OutFile $OutFile - TimeoutSec $TimeoutSec - UseBasicParsing
4949 } else {
50- Invoke-WebRequest - Uri $FallbackUrl - TimeoutSec $TimeoutSec
50+ Invoke-WebRequest - Uri $FallbackUrl - TimeoutSec $TimeoutSec - UseBasicParsing
5151 }
5252 } catch {
53- throw " Failed to download the file from $Url and $FallbackUrl "
53+ throw " Failed to download the file from $Url and $FallbackUrl - $ ( $_ .Exception.Message ) "
5454 }
5555 } else {
56- throw " Failed to download the file from $Url "
56+ throw " Failed to download the file from $Url - $ ( $_ .Exception.Message ) "
5757 }
5858 }
5959 }
You can’t perform that action at this time.
0 commit comments