Skip to content

Commit

Permalink
Document rewind behavior change of rack input.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock authored and jeremyevans committed Jan 31, 2024
1 parent e50b72a commit 25e0e01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UPGRADE-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ this was only generally possible with a file based backing, which prevented
efficient streaming of request bodies. Now, `rack.input` is not required to be
rewindable.

### `rack.input` is no longer rewound after consuming form and multipart data

Previously `.rewind` was called after consuming form and multipart data. Use
`Rack::RewindableInput::Middleware` to make the body rewindable, and call
`.rewind` explicitly to match this behavior.

## Response Changes

### Response must be mutable
Expand Down

0 comments on commit 25e0e01

Please sign in to comment.