Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information