forked from scijs/get-pixels
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP image support was completely broken. Added check for updated Http.IncomingMessage.headers property in addition to checking for getHeader(). Also explicitly set the encoding option to 'null' so that the body value of the respons is always returned as a buffer preventing the parsing libraries from failing to read Encoding headers properly. Added three test cases to verify the fixes (one for each img type). They are pointed to the github raw test images, which is safe for now.
- Loading branch information
Showing
2 changed files
with
53 additions
and
3 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