Skip to content

Commit 2e21575

Browse files
committed
fix(): Proxy not being set
In 47f1080 the comparison was changed from `-eq` to `-ne` which prevented a proxy from being used when proxy environment variables were being set.
1 parent 3d52515 commit 2e21575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WebKitDev/Functions/Invoke-WebFileRequest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Invoke-WebFileRequest {
3232
# Setup a proxy if needed
3333
$proxy = [System.Net.WebProxy]::GetDefaultProxy();
3434

35-
if ($null -ne $proxy.Address) {
35+
if ($null -eq $proxy.Address) {
3636
if ($secure) {
3737
if (Test-Path env:HTTPS_PROXY) {
3838
$proxy = New-Object System.Net.WebProxy ($env:HTTPS_PROXY,$true);

0 commit comments

Comments
 (0)