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

Content-length and chunked encoding #15

Open

Description

@hueniverse

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

Activity

  1. trevnorris commented on Dec 28, 2015

    @trevnorris

    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.

  2. bradisbell commented on Dec 28, 2015

    @bradisbell

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions