Browse Source

Fix ormat_sse_event docstring rendering of \n\n terminator

pull/15613/head
AshNicolus 2 weeks ago
parent
commit
6f2082eb8c
  1. 2
      fastapi/sse.py

2
fastapi/sse.py

@ -188,7 +188,7 @@ def format_sse_event(
) -> bytes:
"""Build SSE wire-format bytes from **pre-serialized** data.
The result always ends with `\n\n` (the event terminator).
The result always ends with `\\n\\n` (the event terminator).
"""
lines: list[str] = []

Loading…
Cancel
Save