EventSource / eventsource

EventSource client for Node.js and Browser (polyfill)
MIT License
898 stars 251 forks source link

Fix parsing of lines with mixed terminators. #327

Open WcRnm opened 10 months ago

WcRnm commented 10 months ago

Fixes issue #326.

When parsing a packet received from the server, the parser is restarting from the start of the packet when parsing each line, rather than starting from the current packet offset.

This PR updates the starting position to the last index, instead of a value of zero.