ethanent / phin

Node HTTP client
MIT License
576 stars 33 forks source link

Fixed an error that occurs when the response is empty. #18

Closed YukiFujisawa closed 6 years ago

YukiFujisawa commented 6 years ago

Fixed an error that occurs when the response is empty.

JSON.parse('');
->Error: Unexpected end of JSON input
ethanent commented 6 years ago

Thanks for the submission. Unfortunately the utility of this PR is not fully understood on my end! It seems that this may be expected behavior.