Closed emilbayes closed 7 years ago
Take a look at the test failure please, you'll need to add a truthiness check to either your expression or isStream
.
Sorry, I was a bit too quick there. Did run tests locally, but should have copy/pasted. You can squash if you're happy as is now :)
@bendrucker In this case truthyness is guaranteed by the if (opts.body)
:)
Oh right just a typo
This looks ok to me, I'll wait a bit and see if feross would like to merge or wants a test
Great :+1: Very quick turnaround!
/cc @feross
I added a test in commit https://github.com/feross/simple-get/commit/71646396cb225727bd79ec435ff495b2bb5b33cc and released as 2.6.1.
@emilbayes I also added you as a collaborator to this repo.
Thank you!
Allow the use of streams while decoding the response as json