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

preset ContentLength in first http.Request #48

Merged
merged 1 commit into from
Dec 19, 2017
Merged

preset ContentLength in first http.Request #48

merged 1 commit into from
Dec 19, 2017

Conversation

presbrey
Copy link
Contributor

@presbrey presbrey commented Mar 29, 2017

http.NewRequest(method, url, body) usually handles req.ContentLength, but body is initially passed as nil so we must calculate it since cloneRequest handles populating new req.Body readers later on.

Fixes #36.

`http.NewRequest(url, method, body)` usually handles req.CL, but we must calculate it since body is initially passed as nil for cloneRequest to handle later on.

Fixes #36.
@maxthomas
Copy link

would love to see some movement on this

@murphyke
Copy link

I lost some time because -d was a heartless impostor ... tracked it down to this.

@mdakin mdakin merged commit 32f75cf into rakyll:master Dec 19, 2017
@mdakin
Copy link
Collaborator

mdakin commented Dec 19, 2017

Thanks!

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.

4 participants