Skip to content

With Sinatra 4/Rack3, now requires "request.body.rewind" #1999

Answered by dentarg
matobinder asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, to be sure you get the body, you need to rewind first.

Note that "rack.input is no longer required to be rewindable." with Rack 3

https://github.com/rack/rack/blob/main/UPGRADE-GUIDE.md#rack-2--rack-3-compatibility

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@matobinder
Comment options

@matobinder
Comment options

@dentarg
Comment options

@matobinder
Comment options

@dentarg
Comment options

Answer selected by matobinder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1998 on January 29, 2024 23:09.