зеркало из https://github.com/mozilla/pjs.git
fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
This commit is contained in:
Родитель
e2c68818c1
Коммит
ba8156a472
|
@ -567,17 +567,17 @@ nsXMLHttpRequest::OpenRequest(const char *method,
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (user) {
|
||||
nsCAutoString prehost;
|
||||
prehost.Assign(user);
|
||||
nsCAutoString userpass;
|
||||
userpass.Assign(user);
|
||||
if (password) {
|
||||
prehost.Append(":");
|
||||
prehost.Append(password);
|
||||
userpass.Append(":");
|
||||
userpass.Append(password);
|
||||
}
|
||||
uri->SetPreHost(prehost.get());
|
||||
uri->SetUserPass(userpass);
|
||||
authp = PR_TRUE;
|
||||
}
|
||||
|
||||
rv = NS_OpenURI(getter_AddRefs(mChannel), uri, nsnull, nsnull);
|
||||
rv = NS_NewChannel(getter_AddRefs(mChannel), uri, nsnull, nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
//mChannel->SetAuthTriedWithPrehost(authp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче