fixes bug 213282 "mozilla not sending basic authorization header" r=dwitte sr=bzbarsky

This commit is contained in:
darin%meer.net 2003-07-29 06:36:45 +00:00
Родитель 2bdf4ab6e6
Коммит e4eb260baa
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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.
}