зеркало из https://github.com/mozilla/pjs.git
fixes bug 213282 "mozilla not sending basic authorization header" r=dwitte sr=bzbarsky
This commit is contained in:
Родитель
2bdf4ab6e6
Коммит
e4eb260baa
|
@ -2306,7 +2306,8 @@ nsHttpChannel::SetAuthorizationHeader(nsHttpAuthCache *authCache,
|
|||
if (header == nsHttp::Authorization) {
|
||||
nsHttpAuthIdentity temp;
|
||||
GetIdentityFromURI(0, temp);
|
||||
if (nsCRT::strcmp(temp.User(), entry->Identity().User()) != 0)
|
||||
if (!temp.IsEmpty() &&
|
||||
nsCRT::strcmp(temp.User(), entry->Identity().User()) != 0)
|
||||
return; // different username; let the server challenge us.
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче