Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e55b5b

Browse files
committed
Updating user-agent string to be consistent with other SDKs format
1 parent b38ae11 commit 2e55b5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

aws-cpp-sdk-core-tests/aws/client/AWSClientTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <aws/core/auth/AWSCredentialsProvider.h>
2121
#include <fstream>
2222
#include <thread>
23+
#include <aws/core/utils/logging/LogMacros.h>
2324

2425
using namespace Aws;
2526
using namespace Aws::Client;

aws-cpp-sdk-core/source/client/AWSClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void AWSClient::SetServiceClientName(const Aws::String& name)
137137
if (!m_customizedUserAgent)
138138
{
139139
Aws::StringStream ss;
140-
ss << "aws-sdk-cpp/" << Version::GetVersionString() << "/" << m_serviceName << "/" << Aws::OSVersionInfo::ComputeOSVersionString()
140+
ss << "aws-sdk-cpp/" << Version::GetVersionString() << " " << Aws::OSVersionInfo::ComputeOSVersionString()
141141
<< " " << Version::GetCompilerVersionString();
142142
m_userAgent = ss.str();
143143
}

0 commit comments

Comments
 (0)