added a temp default http port (80)

git-svn-id: svn://10.0.0.236/trunk@29790 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
1999-04-29 17:33:51 +00:00
parent 64f9541204
commit 75b87cbbc4

View File

@@ -104,7 +104,13 @@ nsHttpProtocolHandler::NewUrl(const char* aSpec,
rv = url->Init(aSpec, aBaseUrl);
*result = NS_STATIC_CAST(nsIUrl*, url);
nsIUrl* realUrl = NS_STATIC_CAST(nsIUrl*, url);
// XXX this is the default port for http. we need to strip out the actual
// XXX requested port.
realUrl->SetPort(80);
*result = realUrl;
NS_ADDREF(*result);
return rv;