зеркало из https://github.com/mozilla/gecko-dev.git
fix for bug 155155 - digest authentication fails when switching between POST&GET requests. r-dougt, sr-darin.
This commit is contained in:
Родитель
1e397051e3
Коммит
524bfd6dd5
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче