forked from sinonjs/nise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sinonjs/sinon#1570 Binary strings will be encoded using utf-8, instead of being returned unchanged in the response body. This commit allows binary response data to be passed as an array buffer directly to nise, while keeping the existing behavior of encoding normal strings in utf-8 as discussed in sinonjs/sinon#875 (comment).
- Loading branch information
Showing
2 changed files
with
52 additions
and
13 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 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
1663407
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this looks great. Want to make it into a pull request so that we can merge it?