proxy: use cookies() for cookie transfer

ref #14
This commit is contained in:
Vaxry
2025-04-15 13:25:38 +01:00
parent 321d1eb326
commit a0577efed7

View File

@@ -376,7 +376,7 @@ void CServerHandler::proxyPass(const Pistache::Http::Request& req, Pistache::Htt
for (auto it = resp.cookies().begin(); it != resp.cookies().end(); ++it) {
std::stringstream ss;
ss << *it;
response.headers().add(std::make_shared<SetCookieHeader>(ss.str()));
response.cookies().add(*it);
Debug::log(TRACE, "Header out: Set-Cookie: {}", ss.str());
}