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

Evaluate request body strictly to fix #34 #35

Closed
wants to merge 1 commit into from

Conversation

thomasjm
Copy link
Contributor

The way this library currently constructs the requestBody to pass to http-client is triggering #34 . I'm not sure why, but I'm hoping it will be obvious to someone familiar with http-client.

This change fixes the problem, although it has to evaluate the entire body to do so. A better solution wouldn't require us to give up on HC.RequestBodyStream and HC.RequestBodyStreamChunked, so hopefully this is a sufficient clue about how to fix it properly.

(I tried replacing WAI.requestBody with WAI.getRequestBodyChunk in the original code, since the former is deprecated, but that didn't change anything.)

@snoyberg
Copy link
Member

Sorry, this is not a solution that I'd be willing to merge in, it has a major and negative impact on many common applications. We can discuss in the issue.

@snoyberg snoyberg closed this Aug 16, 2020
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.

None yet

2 participants