in aws_common/src/sdk_utils/auth/service_credentials_provider.cpp [104:117]
static bool AppendHeader(struct curl_slist ** headers, const char * name, const char * value)
{
Aws::StringStream stream;
stream << name << ": " << value;
struct curl_slist * next = curl_slist_append(*headers, stream.str().c_str());
if (next == nullptr) {
AWS_LOG_ERROR(AWS_LOG_TAG, "Error setting header[%s]: %s", name, value);
return false;
}
*headers = next;
return true;
}