fix for bug 155155 - digest authentication fails when switching between POST&GET requests. r-dougt, sr-darin.

This commit is contained in:
suresh%netscape.com 2003-04-08 20:03:40 +00:00
Родитель 1e397051e3
Коммит 524bfd6dd5
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -202,12 +202,8 @@ nsHttpChannel::Init(nsIURI *uri,
AddStandardRequestHeaders(&mRequestHead.Headers(), caps,
!mConnectionInfo->UsingSSL() &&
mConnectionInfo->UsingHttpProxy());
if (NS_FAILED(rv)) return rv;
// check to see if authorization headers should be included
AddAuthorizationHeaders();
return NS_OK;
return rv;
}
//-----------------------------------------------------------------------------
@ -327,6 +323,9 @@ nsHttpChannel::Connect(PRBool firstTime)
}
}
// check to see if authorization headers should be included
AddAuthorizationHeaders();
// hit the net...
rv = SetupTransaction();
if (NS_FAILED(rv)) return rv;