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

Rewind rack input when reading the request #65

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

marioizquierdo
Copy link
Collaborator

Fixes issue #50

Copy link

@ajvondrak ajvondrak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. If you wanted to add some tests, you could make a Rack middleware that tries to read the body downstream from the Twirp::Service (which would've blown up before). This behavior is emulated in some tests I wrote here, but those involve Rails so I'm afraid it's kind of hard to tease apart the relevant pieces. 😅

@marioizquierdo marioizquierdo merged commit 505b18c into master Apr 23, 2021
@marioizquierdo marioizquierdo deleted the rewind_rack_input branch April 23, 2021 05:19
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