Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: binary body is incorrectly parsed as UTF-8 (#123)
* fix: binary body is incorrectly parsed as UTF-8 When the request body contains binary data it gets parsed incorrectly, leading to corrupted data. According to https://github.com/Azure/azure-functions-nodejs-library/blob/752fd223518fb53c217d5929d5933df0ad061d49/types/http.d.ts#L92-L98 the body property already contains a Buffer for certain media types, so there's no need to create a new one from the rawBody anyway. * chore: format --------- Co-authored-by: Geoff Rich <[email protected]>
- Loading branch information