зеркало из https://github.com/mozilla/pjs.git
attempt to fix OS/2 bustage
This commit is contained in:
Родитель
3ceb179639
Коммит
a3bbcae219
|
@ -2129,7 +2129,7 @@ nsHttpChannel::SetReferrer(nsIURI *referrer, PRUint32 referrerType)
|
|||
nsXPIDLCString prehost;
|
||||
referrer->GetPreHost(getter_Copies(prehost));
|
||||
if (prehost && *prehost) {
|
||||
PRUint32 prehostLoc = PRUint32(ref.Find(prehost, PR_TRUE));
|
||||
PRUint32 prehostLoc = PRUint32(ref.Find(prehost.get(), PR_TRUE));
|
||||
ref.Cut(prehostLoc, nsCharTraits<char>::length(prehost) + 1); // + 1 for @
|
||||
}
|
||||
mRequestHead.SetHeader(nsHttp::Referer, ref.get());
|
||||
|
|
|
@ -516,11 +516,8 @@ nsHttpConnection::SetupSSLProxyConnect()
|
|||
request.Flatten(buf);
|
||||
buf.Append("\r\n");
|
||||
|
||||
nsCOMPtr<nsISupports> sup;
|
||||
rv = NS_NewCStringInputStream(getter_AddRefs(sup), buf);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = NS_NewCStringInputStream(getter_AddRefs(mSSLProxyConnectStream), buf);
|
||||
|
||||
mSSLProxyConnectStream = do_QueryInterface(sup, &rv);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче