isomorphic-fetch icon indicating copy to clipboard operation
isomorphic-fetch copied to clipboard

delete request should contain content-length in header

Open jaredleechn opened this issue 8 years ago • 1 comments

reproduce

fetch('/somePath', { method: 'delete' });
  • make a delete with no body
  • there's no content-length in the request header

image

expect

The delete request with no body should contains header content-length: 0 like other verbs

jaredleechn avatar Jun 23 '17 12:06 jaredleechn

the bug fail the hasBody check of a http request from package type-is, which is dependent by koa.js

jaredleechn avatar Jul 03 '17 08:07 jaredleechn