From 6e4760508565c56f8b020ea0df63f5a7fe36725a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 13 Apr 2025 01:48:58 +0100 Subject: [PATCH] proxy: drop Cache-Control incoming Fixes chromium. --- src/core/Handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Handler.cpp b/src/core/Handler.cpp index 96c9dae..b284b68 100644 --- a/src/core/Handler.cpp +++ b/src/core/Handler.cpp @@ -294,7 +294,7 @@ void CServerHandler::proxyPass(const Pistache::Http::Request& req, Pistache::Htt const auto HEADERS = req.headers().list(); for (auto& h : HEADERS) { // FIXME: why does this break e.g. gitea if we include it? - if (std::string_view{h->name()} == "Host") { + if (std::string_view{h->name()} == "Host" || std::string_view{h->name()} == "Cache-Control") { Debug::log(LOG, "Header in: {}: {} (DROPPED)", h->name(), req.headers().getRaw(h->name()).value()); continue; }