matthew-andrews / isomorphic-fetch

Isomorphic WHATWG Fetch API, for Node & Browserify
MIT License
6.95k stars 289 forks source link

delete request should contain content-length in header #139

Open jaredleechn opened 7 years ago

jaredleechn commented 7 years ago

reproduce

fetch('/somePath', { method: 'delete' });

image

expect

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

jaredleechn commented 7 years ago

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