Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HttpClient] Fix parsing SSE #57453

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Jun 19, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

This PR fixes at least 2 behaviors:

  • Correctly parse comments to ignore them (yield them as DataChunk)
  • Avoid yielding a final empty SSE

I also reworked the test to leverage MockHttpClient.

@fancyweb fancyweb force-pushed the hc/fix-parsing-sse branch from 898ef5c to add5d45 Compare June 19, 2024 13:57
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(test failures unrelated)

@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit e79eea1 into symfony:5.4 Jun 21, 2024
9 of 12 checks passed
@fancyweb fancyweb deleted the hc/fix-parsing-sse branch June 21, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants