Skip to content

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.

1 participant