forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Fix handling of binary data in core-client-rest (Azure#28054)
### Packages impacted by this PR - `@azure-rest/core-client` ### Describe the problem that is addressed by this PR - Remove conversion of Uint8Array to binary string with `application/octet-stream` content type - `core-rest-pipeline` handles Uint8Array as a request body type so this conversion should not be necessary - Remove conversion of Uint8Array to binary string in `multipart/form-data` requests and convert to `Blob` instead - With the new multipart work, support for `Blob` is much improved and this workaround should no longer be required.
- Loading branch information
Showing
5 changed files
with
14 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters