proxy: propagate response code

This commit is contained in:
Vaxry
2025-04-13 00:18:56 +01:00
parent 1571a21a13
commit 36844424b3

View File

@@ -321,7 +321,7 @@ void CServerHandler::proxyPass(const Pistache::Http::Request& req, Pistache::Htt
response.headers().add(h);
}
response.send(Pistache::Http::Code::Ok, resp.body());
response.send(resp.code(), resp.body());
},
[&](std::exception_ptr e) {
try {