Fix the bad prefs returning a value for non-existent proxy port. Fixes today morning horkage in service.
git-svn-id: svn://10.0.0.236/trunk@48351 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user