# HG changeset patch # User Sebastien Jodogne # Date 1747728673 -7200 # Node ID e3202f8f3db868d72b46a87ea867585912b9a59e # Parent b1d9e23104317d55bd3ee033ebd980ff4b240630 fix build by removing C++11 primitives diff -r b1d9e2310431 -r e3202f8f3db8 Framework/PushMode/PushJob.cpp --- a/Framework/PushMode/PushJob.cpp Tue May 20 10:07:01 2025 +0200 +++ b/Framework/PushMode/PushJob.cpp Tue May 20 10:11:13 2025 +0200 @@ -53,13 +53,10 @@ // an array of cookies returned by the server std::vector cookies; - for (const auto &header : headers) + for (std::map::const_iterator it = headers.begin(); it != headers.end(); ++it) { - auto headerName = header.first; - auto headerValue = header.second; - // Check if the header is a Set-Cookie header (case-insensitive) - if (boost::iequals(headerName, "set-cookie")) + if (boost::iequals(it->first, "set-cookie")) { // Set-Cookie headers are formatted as: // Set-Cookie: =; @@ -71,9 +68,9 @@ // Split the cookie string by ';' and take the first part (the actual cookie) std::vector tokens; - Orthanc::Toolbox::SplitString(tokens, headerValue, ';'); + Orthanc::Toolbox::SplitString(tokens, it->second, ';'); - if(!tokens.empty()) + if (!tokens.empty()) { std::string cookie = tokens[0]; std::string trimmedCookie = boost::trim_copy(cookie);