Skip to content

Commit e0d4e9e

Browse files
annevkdomenic
authored andcommitted
EventSource: ignore IDs with U+0000
Tests: web-platform-tests/wpt#6584. Fixes whatwg#689.
1 parent 88f26c3 commit e0d4e9e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

source

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94056,8 +94056,9 @@ dictionary <dfn>EventSourceInit</dfn> {
9405694056
data-x="concept-event-stream-last-event-id">last event ID string</span> is not the empty
9405794057
string, <span data-x="concept-header-list-set">set</span> `<code
9405894058
data-x="http-last-event-id">Last-Event-ID</code>`/<span
94059-
data-x="concept-event-stream-last-event-id">last event ID string</span>, encoded as UTF-8, in
94060-
<var>request</var>'s <span data-x="concept-request-header-list">header list</span>.</p></li>
94059+
data-x="concept-event-stream-last-event-id">last event ID string</span>, <span data-x="UTF-8
94060+
encode">encoded as UTF-8</span>, in <var>request</var>'s <span
94061+
data-x="concept-request-header-list">header list</span>.</p></li>
9406194062

9406294063
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var> and process the
9406394064
response obtained in this fashion, if any, as described earlier in this section.</p></li>
@@ -94201,7 +94202,8 @@ any-char = %x0000-0009 / %x000B-000C / %x000E-10FFFF
9420194202

9420294203
<dt>If the field name is "id"</dt>
9420394204

94204-
<dd><p>Set the <var>last event ID</var> buffer to the field value.</p></dd>
94205+
<dd><p>If the field value does not contain U+0000 NULL, then set the <var>last event ID</var>
94206+
buffer to the field value. Otherwise, ignore the field.</p></dd>
9420594207

9420694208

9420794209
<dt>If the field name is "retry"</dt>

0 commit comments

Comments
 (0)