isomorphic-fetch
isomorphic-fetch copied to clipboard
delete request should contain content-length in header
reproduce
fetch('/somePath', { method: 'delete' });
- make a delete with no body
- there's no
content-lengthin the request header

expect
The delete request with no body should contains header content-length: 0 like other verbs
the bug fail the hasBody check of a http request from package type-is, which is dependent by koa.js