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

Blank lines not read #35

Closed
Lesterpig opened this issue Jul 31, 2014 · 1 comment
Closed

Blank lines not read #35

Lesterpig opened this issue Jul 31, 2014 · 1 comment

Comments

@Lesterpig
Copy link

Hi !
I've got a problem with blank lines parsing.
Assuming I want to send this message : "I am\na text.\n\nHello World!".
The server will encode it as :

data: I am\n
data: a text.\n
data: \n
data: Hello World!\n\n

But eventsource will parse it and give : "I am\na text.\nHello World!"
On Chrome, with the same server, I get the correct message.

Thank's !

@Lesterpig
Copy link
Author

Just created a pull request for this.

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

No branches or pull requests

1 participant