Skip to content

Rewind rack input when reading the request#65

Merged
marioizquierdo merged 1 commit intomasterfrom
rewind_rack_input
Apr 23, 2021
Merged

Rewind rack input when reading the request#65
marioizquierdo merged 1 commit intomasterfrom
rewind_rack_input

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