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

Fix Event stream with carriage return support #14250

Merged
merged 6 commits into from
Jul 24, 2024

Conversation

samuel-videau
Copy link
Contributor

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Add supports to \r as a separator while processing event streams, and therefore adhering to https://html.spec.whatwg.org/multipage/server-sent-events.html#the-eventsource-interface

Which issues(s) does this PR fix?

Fixes #13730

Other notes for review

The utility function added is just a slight modification of the ScanLines function in scan.go

@samuel-videau samuel-videau requested a review from a team as a code owner July 21, 2024 05:58
@CLAassistant
Copy link

CLAassistant commented Jul 21, 2024

CLA assistant check
All committers have signed the CLA.

@james-prysm
Copy link
Contributor

Thanks for the submission,

looks like there is a lint issue api/client/event/utils.go:36: File is not gofmt-ed with -s

@samuel-videau
Copy link
Contributor Author

My bad, should be good now!

@james-prysm
Copy link
Contributor

looks like there are some linter rule issues ( bazel file)
please use bazel run //:gazelle -- fix

@samuel-videau
Copy link
Contributor Author

looks like there are some linter rule issues ( bazel file) please use bazel run //:gazelle -- fix

Ah that's a shame sorry for that, should be good now

Copy link
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

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

I think the implementation looks good to me, thanks for this contribution

@james-prysm james-prysm added this pull request to the merge queue Jul 24, 2024
Merged via the queue into prysmaticlabs:develop with commit 5c36936 Jul 24, 2024
17 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.

Fully supporting Event stream standards
3 participants