-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix Event stream with carriage return support #14250
Conversation
Thanks for the submission, looks like there is a lint issue api/client/event/utils.go:36: File is not |
0630e3c
to
8763a01
Compare
My bad, should be good now! |
looks like there are some linter rule issues ( bazel file) |
Ah that's a shame sorry for that, should be good now |
There was a problem hiding this 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
What type of PR is this?
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-interfaceWhich 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