Fix malformed URL in KeyVault (#5129)

* Fix malformed URL in KeyVault

* Update changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2023-11-07 21:33:05 -08:00 committed by GitHub
parent 6cae0c71fa
commit 37060211b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "cpp",
"TagPrefix": "cpp/keyvault",
"Tag": "cpp/keyvault_b7bbda693f"
"Tag": "cpp/keyvault_51f59d3347"
}

View File

@ -11,6 +11,7 @@
### Other Changes
- Fixed GCC 13 compilation error. (A community contribution, courtesy of _[adamdebreceni](https://github.com/adamdebreceni)_)
- Use well-formed URL for the HTTP request made in `KeyClient::GetRandomBytes()`.
### Acknowledgments

View File

@ -462,7 +462,7 @@ Azure::Response<GetRandomBytesResult> KeyClient::GetRandomBytes(
reinterpret_cast<const uint8_t*>(payload.data()), payload.size());
// Request and settings
auto request = CreateRequest(HttpMethod::Post, {"/rng"}, &payloadStream);
auto request = CreateRequest(HttpMethod::Post, {"rng"}, &payloadStream);
request.SetHeader(HttpShared::ContentType, HttpShared::ApplicationJson);
// Send and parse response