Skip to content

fix: match the event stream MIME type exactly - #369

Merged
rexxars merged 1 commit into
mainfrom
rexxars/fix-event-stream-content-type
Oct 13, 2026
Merged

rexxars merged 1 commit into
mainfrom
rexxars/fix-event-stream-content-type

Conversation

@rexxars

@rexxars rexxars commented Oct 13, 2026

Copy link
Copy Markdown
Member

The current prefix check rejects Text/Event-Stream but accepts text/event-streaming. Match the complete text/event-stream type case-insensitively, allowing HTTP whitespace around it and parameters after ;.

This is a smaller alternative to #366. It fixes the MIME matching with an inline regex and leaves parsing of combined or repeated Content-Type headers out of scope to keep the bundle small.

@rexxars
rexxars force-pushed the rexxars/fix-event-stream-content-type branch from 321ce2a to 7bb1b1a Compare October 13, 2026 20:45
@rexxars
rexxars marked this pull request as ready for review October 13, 2026 20:50
@rexxars
rexxars merged commit d3fe0d3 into main Oct 13, 2026
11 checks passed
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.

1 participant