From 4e307c314b4ec75477ba5c6d24172594c35caec0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 13 Apr 2025 21:59:13 +0100 Subject: [PATCH] handler: bring back the host header also bump pistache to add a fix for host 400, fixes #1 --- src/core/Handler.cpp | 2 +- subprojects/pistache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Handler.cpp b/src/core/Handler.cpp index b229b96..0a8cf1a 100644 --- a/src/core/Handler.cpp +++ b/src/core/Handler.cpp @@ -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; } diff --git a/subprojects/pistache b/subprojects/pistache index 832cd0c..c682cdb 160000 --- a/subprojects/pistache +++ b/subprojects/pistache @@ -1 +1 @@ -Subproject commit 832cd0c0c33a0613c443ebb9527db6d70c4792eb +Subproject commit c682cdb24dec29998e82256c5ea44b4bbc83be89