handler: bring back the host header

also bump pistache to add a fix for host 400, fixes #1
This commit is contained in:
Vaxry
2025-04-13 21:59:13 +01:00
parent f8c234141f
commit 4e307c314b
2 changed files with 2 additions and 2 deletions

View File

@@ -303,7 +303,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" || std::string_view{h->name()} == "Cache-Control" || std::string_view{h->name()} == "Connection") {
if (std::string_view{h->name()} == "Cache-Control" || std::string_view{h->name()} == "Connection") {
Debug::log(TRACE, "Header in: {}: {} (DROPPED)", h->name(), req.headers().getRaw(h->name()).value());
continue;
}