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

Default UTF-8 encoding #14

Merged
merged 2 commits into from
Feb 10, 2017
Merged

Default UTF-8 encoding #14

merged 2 commits into from
Feb 10, 2017

Conversation

willyboy
Copy link
Contributor

No description provided.

UTF-8 Encoding is required for event streams per spec (https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events). However, if you're running node behind a Tomcat server, the default content is set to iso-8859-1. This will throw an error in Chrome. Since UTF-8 is required, I think setting it should be part of the library.
@rexxars
Copy link
Owner

rexxars commented Feb 10, 2017

Thanks!

@rexxars rexxars merged commit 18557e7 into rexxars:master Feb 10, 2017
@rexxars
Copy link
Owner

rexxars commented Feb 10, 2017

Released as 2.0.4

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

2 participants