This repository has been archived by the owner on Sep 14, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in
readAsBytes
via http when content-length is set. (#24)
The `readAsBytes` method returns twice as much data as expected, with the first half all zeroes. This comes from pre-allocating the buffer, then appending to it (similar to issue 21, but with `readAsBytes` instead of `readAsString`). Updated the tests to also catch this case. BUG: #23
- Loading branch information
Showing
2 changed files
with
39 additions
and
21 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