strip Content-Length header to prevent duplicate
This commit is contained in:
@@ -447,7 +447,7 @@ void CServerHandler::proxyPassInternal(const Pistache::Http::Request& req, Pista
|
||||
const auto HEADERSRESP = resp.headers().list();
|
||||
|
||||
for (auto& h : HEADERSRESP) {
|
||||
if (std::string_view{h->name()} == "Transfer-Encoding") {
|
||||
if (std::string_view{h->name()} == "Transfer-Encoding" || std::string_view{h->name()} == "Content-Length") {
|
||||
Debug::log(TRACE, "Header out: {}: {} (DROPPED)", h->name(), resp.headers().getRaw(h->name()).value());
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user