typicode / fetchival

Easy window.fetch requests
MIT License
522 stars 33 forks source link

Assign empty body if data is falsey. #10

Closed bombadillo closed 5 years ago

bombadillo commented 9 years ago

For subsequent requests, the opts.body is set to the previous request if data is falsey. If data exists, set to stringified data otherwsie set it to empty string.

bombadillo commented 9 years ago

Potential fix for #9