Skip to content

Commit

Permalink
Merge pull request #337 from OverOrion/cpp-std-transform-fix
Browse files Browse the repository at this point in the history
Fix std::transform and std::tolower usage in GRPCDest
  • Loading branch information
alltilla authored Oct 12, 2024
2 parents ccbab69 + 399e99a commit 71be47e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/grpc/common/grpc-dest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ class DestDriver

void add_header(std::string name, std::string value)
{
std::transform(name.begin(), name.end(), name.begin(), ::tolower);
std::transform(name.begin(), name.end(), name.begin(),
[](auto c)
{
return ::tolower(c);
});
this->headers.push_back(std::make_pair(name, value));
}

Expand Down

0 comments on commit 71be47e

Please sign in to comment.