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

Content-Length #58

Open
soulne4ny opened this issue May 4, 2017 · 0 comments
Open

Content-Length #58

soulne4ny opened this issue May 4, 2017 · 0 comments

Comments

@soulne4ny
Copy link

Hi,

Content-Length is the length of the request body in octets (8-bit bytes).

This

if (len && encoding === 'identity') opts.length = len = ~~len;
makes Content-Length to be checked only when encoding is identity. But Content-Length has nothing about encoding, just octets.

Content-Length should be always checked, shouldn't it?

Regards

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