summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-10-17 16:26:18 +0200
committerMoonchild <moonchild@palemoon.org>2023-10-17 16:26:18 +0200
commit60b4d804bd8f29582df32db7e862e1e91b221e69 (patch)
treee5e0622ba5ab62957f8f484417bbf0b32b0cd85e
parent087febcc4b017a0af4ec82b1283341c8d979a17e (diff)
downloaduxp-60b4d804bd8f29582df32db7e862e1e91b221e69.tar.gz
Issue #1721 - Follow-up: Properly protect GPC header
Make it a singleton so it cannot be overwritten.
-rw-r--r--netwerk/protocol/http/nsHttpHeaderArray.h1
1 files changed, 1 insertions, 0 deletions
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);