Skip to content

Commit

Permalink
chore: use strcasecmp for unix based systems
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Sep 11, 2024
1 parent 721262e commit 523449a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/saml_http_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ nlohmann::json SAML_HTTP_CLIENT::post(const std::string& path, const std::string
httplib::Headers cookies = {};
std::string cookiestr;
for (auto const& x : headers) {
if (stricmp(x.first.c_str(), "Set-Cookie") == 0) {
if (strcmp(x.first.c_str(), "Set-Cookie") == 0) {
cookiestr += x.second;
cookiestr += ";";
}
Expand All @@ -82,7 +82,7 @@ nlohmann::json SAML_HTTP_CLIENT::post(const std::string& path, const std::string
}

if (res->status == httplib::StatusCode::OK_200) {
if (stricmp(content_type.c_str(), "application/json") == 0) {
if (strcmp(content_type.c_str(), "application/json") == 0) {
return nlohmann::json::parse(res->body);
}

Expand Down

0 comments on commit 523449a

Please sign in to comment.