/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
int Adaptation::Config::send_client_ip = false;
int Adaptation::Config::send_username = false;
int Adaptation::Config::use_indirect_client = true;
-const char *metasBlacklist[] = {
- "Methods",
- "Service",
- "ISTag",
+static const char *protectedFieldNamesRaw[] = {
+ "Allow",
+ "Date",
"Encapsulated",
- "Opt-body-type",
+ "ISTag",
"Max-Connections",
+ "Methods",
+ "Opt-body-type",
"Options-TTL",
- "Date",
- "Service-ID",
- "Allow",
"Preview",
- "Transfer-Preview",
- "Transfer-Ignore",
+ "Service",
+ "Service-ID",
"Transfer-Complete",
- NULL
+ "Transfer-Ignore",
+ "Transfer-Preview"
};
-Notes Adaptation::Config::metaHeaders("ICAP header", metasBlacklist, true);
+static const Notes::Keys protectedFieldNames(std::begin(protectedFieldNamesRaw), std::end(protectedFieldNamesRaw));
+Notes Adaptation::Config::metaHeaders("ICAP header", &protectedFieldNames);
bool Adaptation::Config::needHistory = false;
Adaptation::ServiceConfig*