Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete request should contain content-length in header #139

Open
jaredleechn opened this issue Jun 23, 2017 · 1 comment
Open

delete request should contain content-length in header #139

jaredleechn opened this issue Jun 23, 2017 · 1 comment

Comments

@jaredleechn
Copy link

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
Copy link
Author

jaredleechn commented Jul 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant