mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
fix for bug 155155 - digest authentication fails when switching between POST&GET requests. r-dougt, sr-darin.
This commit is contained in:
parent
1e397051e3
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user