Skip to content

Stream responses with Content-Type parameters without reading ahead - #501

Merged
geemus merged 2 commits into
masterfrom
fix/streaming-content-type-parameters
Nov 11, 2026
Merged

geemus merged 2 commits into
masterfrom
fix/streaming-content-type-parameters

Conversation

@ydah

@ydah ydah commented Nov 10, 2026

Copy link
Copy Markdown
Member

Responses with Content-Type: text/event-stream; charset=utf-8 miss a parser registered for text/event-stream and fall back to eager body consumption. An endless SSE response never returns from the middleware.

Fall back to Rack::MediaType.type when looking up streaming parsers, while preserving exact-match precedence.

@geemus
geemus force-pushed the fix/streaming-content-type-parameters branch from 5f51ea6 to a332d01 Compare November 11, 2026 14:02

@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 00b5ec0 into master Nov 11, 2026
9 checks passed
@geemus
geemus deleted the fix/streaming-content-type-parameters branch November 11, 2026 14:04
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