mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1171203 - Fix redirection limit underflow, don't count internal redirect to this limit, r=mcmanus
This commit is contained in:
parent
3f47f7f4b8
commit
14d285bdcd
@ -2973,7 +2973,11 @@ HttpBaseChannel::SetupReplacementChannel(nsIURI *newURI,
|
||||
httpChannel->SetAllowPipelining(mAllowPipelining);
|
||||
httpChannel->SetAllowSTS(mAllowSTS);
|
||||
// convey the new redirection limit
|
||||
httpChannel->SetRedirectionLimit(mRedirectionLimit - 1);
|
||||
// make sure we don't underflow
|
||||
uint32_t redirectionLimit = mRedirectionLimit
|
||||
? mRedirectionLimit - 1
|
||||
: 0;
|
||||
httpChannel->SetRedirectionLimit(redirectionLimit);
|
||||
|
||||
// convey the Accept header value
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user