Skip to content

POST requests with empty body should default Content-Length to 0 #89

Closed

Description

@cjoudrey

This would prevent doing this:

request({
  url: 'http://127.0.0.1/something',
  method: 'POST',
  headers: {
    'Content-Length': '0'
  }
});

Activity

  1. mikeal commented on Oct 26, 2011

    @mikeal
    Member

    now you can write this as

    request.post('http://locahost/something')
  2. added a commit that references this issue on Jun 4, 2012
  3. added a commit that references this issue on Mar 10, 2026
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