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

Fix read body for large payloads #270

Merged
merged 1 commit into from Mar 14, 2024

Conversation

thatpythonguy
Copy link
Contributor

Fixes a bug caused by a payload (HTTP body) that is large enough that Cowboy streams it (i.e., when cowboy_req:read_body/2 is called multiple times). This is in line with the example given by Cowboy here

Without this fix, only the last chunk of the stream is returned as the body of the request.

@Taure
Copy link
Collaborator

Taure commented Mar 14, 2024

It looks good and thank you for the PR.

@Taure Taure merged commit a95ac2f into novaframework:master Mar 14, 2024
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