diff --git a/modules/grpc/common/grpc-dest.hpp b/modules/grpc/common/grpc-dest.hpp index a95387d33..4667269aa 100644 --- a/modules/grpc/common/grpc-dest.hpp +++ b/modules/grpc/common/grpc-dest.hpp @@ -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)); }