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

Streaming requests broken after 0.2.4. #380

Merged
merged 4 commits into from
Apr 14, 2013
Merged

Streaming requests broken after 0.2.4. #380

merged 4 commits into from
Apr 14, 2013

Conversation

paulnicholson
Copy link
Contributor

We recently upgraded from 0.2.4 to 0.4.1. Our client is sending a "Transfer-Encoding: chunked" header with a streamed request and the formatter middleware is failing to read the body input as json. This appears to be because content-length is nil since its a streaming request and the read_body_input method now depends on it being defined and greater than 0.

@dblock
Copy link
Member

dblock commented Apr 4, 2013

I don't have much experience with this kind of things. It would be great to get a spec that reproduces this, happy to help fix.

@dblock
Copy link
Member

dblock commented Apr 5, 2013

This looks good. Can you please update CHANGELOG as well?

An API-level integration test that makes a full request would be nice, too.

@paulnicholson
Copy link
Contributor Author

@dblock Can this be merged now?

@dblock
Copy link
Member

dblock commented Apr 14, 2013

Looks good, thanks. Merging.

dblock added a commit that referenced this pull request Apr 14, 2013
Streaming requests broken after 0.2.4.
@dblock dblock merged commit b03753c into ruby-grape:master Apr 14, 2013
@paulnicholson paulnicholson deleted the chunked_encoding branch April 16, 2013 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants