From 57feefab37cd57b641c001bf860162d25136ab74 Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Mon, 20 Sep 1999 18:56:44 +0000 Subject: [PATCH] Fix the bad prefs returning a value for non-existent proxy port. Fixes today morning horkage in service. --- netwerk/protocol/http/src/nsHTTPHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwerk/protocol/http/src/nsHTTPHandler.cpp b/netwerk/protocol/http/src/nsHTTPHandler.cpp index 7b6ed851754f..f38978218ac1 100644 --- a/netwerk/protocol/http/src/nsHTTPHandler.cpp +++ b/netwerk/protocol/http/src/nsHTTPHandler.cpp @@ -124,7 +124,7 @@ nsHTTPHandler::nsHTTPHandler():mProxy(nsnull) printf("Read HTTP proxy = %s:%d\n", (const char*)proxyServer,proxyPort); #endif - if (NS_SUCCEEDED(rv)) + if (NS_SUCCEEDED(rv) && (proxyPort>0)) // currently a bug in IntPref { if (NS_FAILED(SetProxyHost(proxyServer))) NS_ERROR("Failed to set the HTTP proxy server");