avoid making a copy from vectorBody (#364)
This commit is contained in:
parent
9563d9dd3c
commit
6e3c3d9acf
@ -103,7 +103,7 @@ AccessToken ClientSecretCredential::GetToken(
|
||||
throw AuthenticationException(errorMsg.str());
|
||||
}
|
||||
|
||||
auto const responseBodyVector = response->GetBody();
|
||||
auto const& responseBodyVector = response->GetBody();
|
||||
std::string responseBody(responseBodyVector.begin(), responseBodyVector.end());
|
||||
|
||||
// TODO: use JSON parser.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user