Repository navigation
fix: handle CLRF and CR line endings in SSE parser - #3055
Conversation
|
|
|
@nachogarcia is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: d663232 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3055 +/- ##
=======================================
Coverage 33.01% 33.01%
=======================================
Files 426 426
Lines 32797 32798 +1
Branches 2126 2126
=======================================
+ Hits 10827 10828 +1
Misses 21942 21942
Partials 28 28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
commit: |
fix: handle CLRF and CR line endings in SSE parser
Fixes #3054
The SSE parser only handled LF (\n) line endings, but the WHATWG HTML
Standard for Server-Sent Events supports three valid formats:
This caused parsing failures with servers like sse-starlette that use
CRLF by default. The fix normalizes all line endings to LF before
parsing.
Fixes compatibility with spec-compliant SSE servers.