Issue #1721 - Follow-up: Properly protect GPC header

Make it a singleton so it cannot be overwritten.
This commit is contained in:
Moonchild 2023-10-17 16:26:18 +02:00 committed by roytam1
commit 0315aeee73

View file

@ -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);