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

check for content-length header before setting it in nextTick #955

Merged
merged 1 commit into from
Jul 7, 2014

Conversation

camilleanne
Copy link
Contributor

extending #793 so it does not override a custom content-length header.

Especially relevant when passing in a stream since _form.getLengthSync doesn't calculate the length of the stream in form-data, making this statement: #345 (comment) not technically correct.

mikeal added a commit that referenced this pull request Jul 7, 2014
check for content-length header before setting it in nextTick
@mikeal mikeal merged commit d1b5974 into request:master Jul 7, 2014
nylen pushed a commit to nylen/request that referenced this pull request Oct 17, 2014
check for content-length header before setting it in nextTick
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

Successfully merging this pull request may close these issues.

2 participants