From 0315aeee7351efa84836138ebeaac74ac6345c00 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 17 Oct 2023 16:26:18 +0200 Subject: [PATCH] Issue #1721 - Follow-up: Properly protect GPC header Make it a singleton so it cannot be overwritten. --- netwerk/protocol/http/nsHttpHeaderArray.h | 1 + 1 file changed, 1 insertion(+) diff --git a/netwerk/protocol/http/nsHttpHeaderArray.h b/netwerk/protocol/http/nsHttpHeaderArray.h index b65b36fcdd..0a93e94ff6 100644 --- a/netwerk/protocol/http/nsHttpHeaderArray.h +++ b/netwerk/protocol/http/nsHttpHeaderArray.h @@ -234,6 +234,7 @@ nsHttpHeaderArray::IsSingletonHeader(nsHttpAtom header) header == nsHttp::From || header == nsHttp::Location || header == nsHttp::Max_Forwards || + header == nsHttp::GlobalPrivacyControl || // Ignore-multiple-headers are singletons in the sense that they // shouldn't be merged. IsIgnoreMultipleHeader(header);