Repository navigation
Patch Changes
-
#369
d3fe0d3Thanks @rexxars! - Accept case variations oftext/event-streamand reject different MIME subtypes such astext/event-streaming. -
#370
02634ebThanks @rexxars! - Avoid double-encoding non-ASCII event IDs when reconnecting with Cloudflare Workers' nativefetch. -
#367
fd62d79Thanks @OsamaAnsar! - FixedLast-Event-IDnot being sent as UTF-8 on reconnectThe 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€, madefetch()throw aTypeErroron 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.