Skip to content

Commit 8fa30c2

Browse files
committed
Proxy fix for stdHTTP
1 parent 8623b6f commit 8fa30c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stdHTTP.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ End Function
540540
Private Sub LoadAutoProxy(ByVal sURL as string, ByVal oProxy as Object)
541541
Dim info As ProxyInfoEx: info = GetProxyCurrentUser(sURL)
542542
If Not info.Error.isSet Then
543-
oProxy("hasProxy") = true
543+
'FIX: Sometimes proxy server is empty without the error being set. Ignore these proxys.
544+
oProxy("hasProxy") = (info.ProxyServer <> "")
544545
oProxy("server") = info.ProxyServer
545546
oProxy("bypass") = info.ProxyBypass
546547
oProxy("user") = Empty 'TODO: Check if user/pass credentials with auto-proxy will ever be needed

0 commit comments

Comments
 (0)