handler: bring back the host header
also bump pistache to add a fix for host 400, fixes #1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Submodule subprojects/pistache updated: 832cd0c0c3...c682cdb24d
Reference in New Issue
Block a user