Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

Content-length and chunked encoding #15

Open
hueniverse opened this issue Dec 28, 2015 · 2 comments
Open

Content-length and chunked encoding #15

hueniverse opened this issue Dec 28, 2015 · 2 comments

Comments

@hueniverse
Copy link

Who is responsible for preventing setting both length and chunked? The spec does now allow it but node doesn't care. Should it?

@trevnorris
Copy link

Is there an appropriate place where an error could be omitted? If not it would probably make sense to always favor the chunked field over the length field.

@bradisbell
Copy link

I regularly have to work with some poorly behaved clients, and have had to hack this in place to get things working:

res.useChunkedEncodingByDefault = false;

More info here: http://stackoverflow.com/q/11589671/362536

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

No branches or pull requests

3 participants