diff options
author | Moonchild <moonchild@palemoon.org> | 2023-10-17 16:26:18 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-10-17 16:26:18 +0200 |
commit | 60b4d804bd8f29582df32db7e862e1e91b221e69 (patch) | |
tree | e5e0622ba5ab62957f8f484417bbf0b32b0cd85e | |
parent | 087febcc4b017a0af4ec82b1283341c8d979a17e (diff) | |
download | uxp-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.h | 1 |
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); |