Closed leoek closed 5 years ago
@leoek I can take this on if you'd like.
Sure! I am very busy at the moment, hence the issue instead of a fix 🙈
Would be great if you could add a test as well. This case is currently not covered and therefore missed in the initial release.
empty options
Example
curl: fetchToCurl("google.com", {})
Currentcurl "google.com"undefined
Expectedcurl "google.com"
no options
Example
curl: fetchToCurl("google.com")
Current fails with the errorcannot read property body of undefined
Expectedcurl "google.com"