Browse Source
format_sse_event() built data: lines via data_str.splitlines(), which returns [] for an empty string. An empty data payload (e.g. yielding ServerSentEvent(raw_data='')) therefore emitted no data: field at all and produced a malformed frame missing the data line and the documented \n\n terminator. Emit a single empty data: line in that case.pull/15948/head
2 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue