Skip to content

v5.1.3

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 15:42
888f056

Patch Changes

  • #369 d3fe0d3 Thanks @rexxars! - Accept case variations of text/event-stream and reject different MIME subtypes such as text/event-streaming.

  • #370 02634eb Thanks @rexxars! - Avoid double-encoding non-ASCII event IDs when reconnecting with Cloudflare Workers' native fetch.

  • #367 fd62d79 Thanks @OsamaAnsar! - Fixed Last-Event-ID not being sent as UTF-8 on reconnect

    The event ID was passed to fetch() as a plain string header value, but header values are byte strings. An ID containing a character above U+00FF, eg €, made fetch() throw a TypeError on every reconnect attempt, so the connection was never re-established. An ID with characters in the U+0080 to U+00FF range, eg é, was sent as a single Latin-1 byte instead of its UTF-8 encoding. The header now carries the UTF-8 bytes of the ID, as the specification requires.