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