fix: Use lower-case proxy headers naming (#21235)

This commit is contained in:
Aleksander Grygier
2026-03-31 17:47:46 +02:00
committed by GitHub
parent 6307ec07d3
commit 0fcb3760b2
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ static server_http_res_ptr proxy_request(const server_http_req & req, std::strin
std::map<std::string, std::string> headers;
for (auto [key, value] : req.headers) {
auto new_key = key;
if (string_starts_with(new_key, "X-Proxy-Header-")) {
string_replace_all(new_key, "X-Proxy-Header-", "");
if (string_starts_with(new_key, "x-proxy-header-")) {
string_replace_all(new_key, "x-proxy-header-", "");
}
headers[new_key] = value;
}