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

Server-Sent-Events compliance: Allow space in front of value #509

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ruakij
Copy link

@Ruakij Ruakij commented Dec 22, 2023

According to the Spec for SSE, when a line contains a colon character, the first colon separates field and value.

A space in front of the value field is allowed, but not required.

[..] If value starts with a U+0020 SPACE character, remove it from value.

This Patch makes the regex-space optional to archive that.

If interested: I found this issue when i implemented the API and wanted to use it, but the web-library gin sends Server-Sent-Events without the space, thus not working at all.

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.

None yet

1 participant