From d4cd5e1a0f51dc02eef1ff8bd39692c3a572fc02 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Fri, 27 Sep 2019 17:45:28 +0300 Subject: [PATCH] [platform] Fix curl HttpClient header parsing. --- platform/http_client_curl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/http_client_curl.cpp b/platform/http_client_curl.cpp index c1a8f0bca7..7add191acf 100644 --- a/platform/http_client_curl.cpp +++ b/platform/http_client_curl.cpp @@ -237,13 +237,13 @@ bool HttpClient::RunHttpRequest() std::string headerKey; for (auto const & header : headers) { - if (header.first == "Set-Cookie") + if (strings::EqualNoCase(header.first, "Set-Cookie")) { serverCookies += header.second + ", "; } else { - if (header.first == "Location") + if (strings::EqualNoCase(header.first, "Location")) m_urlReceived = header.second; if (m_loadHeaders)