Skip to content

Handle Rack 3 inputs, headers, and streaming responses - #493

Merged
geemus merged 2 commits into
masterfrom
fix-rack3-middleware-compatibility
Oct 17, 2026
Merged

geemus merged 2 commits into
masterfrom
fix-rack3-middleware-compatibility

Conversation

@ydah

@ydah ydah commented Oct 11, 2026

Copy link
Copy Markdown
Member

Rack 3 permits non-rewindable request input and call-only response bodies, and requires lowercase response header names (Rack specification). These cases previously raised NoMethodError or Rack::LintError in Committee.

Guard request-body rewinds, emit lowercase content-type headers, and pass call-only response bodies through. Add Rack::Lint and streaming-body regression tests.

@geemus geemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, thanks!

@geemus
geemus merged commit c7847b6 into master Oct 17, 2026
9 checks passed
@geemus
geemus deleted the fix-rack3-middleware-compatibility branch October 17, 2026 15:46
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