tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit d2045d0657f50cfb96d6d1fa89c4a289b1e7796e
parent e0dc9ce060fefe24961f2e9be125c5639c6b5a8b
Author: Randell Jesup <rjesup@mozilla.com>
Date:   Tue,  7 Oct 2025 17:55:59 +0000

Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D263729

Diffstat:
Mnetwerk/protocol/http/nsHttpHeaderArray.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/netwerk/protocol/http/nsHttpHeaderArray.cpp b/netwerk/protocol/http/nsHttpHeaderArray.cpp @@ -284,10 +284,12 @@ nsresult nsHttpHeaderArray::GetOriginalHeader(const nsHttpAtom& aHeader, MOZ_ASSERT((entry.variety == eVarietyResponseNetOriginalAndResponse) || (entry.variety == eVarietyResponseNetOriginal) || - (entry.variety == eVarietyResponse), + (entry.variety == eVarietyResponse) || + (entry.variety == eVarietyResponseOverride), "This must be a response header."); index++; - if (entry.variety == eVarietyResponse) { + if (entry.variety == eVarietyResponse || + entry.variety == eVarietyResponseOverride) { continue; }