Fix CI failure

This commit is contained in:
Grigorii Sokolik 2024-06-13 14:15:19 +03:00
parent 2aa2f2f7da
commit 80575fe122

View File

@ -56,13 +56,13 @@ std::unordered_map<String, String> parseHTTPResponseHeaders(const std::string &
void applyHTTPResponseHeaders(Poco::Net::HTTPResponse & response, const HTTPResponseHeaderSetup & setup) void applyHTTPResponseHeaders(Poco::Net::HTTPResponse & response, const HTTPResponseHeaderSetup & setup)
{ {
if (setup) if (setup)
for (auto [header_name, header_value] : *setup) for (const auto & [header_name, header_value] : *setup)
response.set(header_name, header_value); response.set(header_name, header_value);
} }
void applyHTTPResponseHeaders(Poco::Net::HTTPResponse & response, const std::unordered_map<String, String> & setup) void applyHTTPResponseHeaders(Poco::Net::HTTPResponse & response, const std::unordered_map<String, String> & setup)
{ {
for (auto [header_name, header_value] : setup) for (const auto & [header_name, header_value] : setup)
response.set(header_name, header_value); response.set(header_name, header_value);
} }