fetchival
fetchival copied to clipboard
GET body not empty
Seems that if I do a GET after POST, opts.body of GET request will send body that sent by POST I had to modify fetchival to fix it.
if (data) {
opts.body = JSON.stringify(data)
} else {
delete opts.body
}
another possible fix is let function fetchival return a new object