Skip to content

Rewind rack.input before re-parsing the request body for rack 3 support#71

Merged
cilim merged 1 commit into
masterfrom
fix/67-rack-3-support
Apr 28, 2026
Merged

Rewind rack.input before re-parsing the request body for rack 3 support#71
cilim merged 1 commit into
masterfrom
fix/67-rack-3-support

Conversation

@cilim

@cilim cilim commented Apr 28, 2026

Copy link
Copy Markdown
Member

Rack 3 support

Resolves: #67

Summary

Fixes Rack::Multipart::Parser::BoundedIO#read: bad content body (EOFError) raised by Dox::Formatter when generating documentation for request specs that post multipart/form-data on Rails apps running Rack 3.

Problem

After upgrading from Rack 2 to Rack 3, running the dox formatter against any multipart request spec crashes at the end of the run:

@cilim cilim self-assigned this Apr 28, 2026
@cilim
cilim requested a review from gogi1805 April 28, 2026 10:37

@gogi1805 gogi1805 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@cilim
cilim merged commit 5d98abb into master Apr 28, 2026
6 checks passed
@cilim
cilim deleted the fix/67-rack-3-support branch April 28, 2026 10:49
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.

Rack 3 support

2 participants