diff --git a/fastapi/sse.py b/fastapi/sse.py index 1e2bd86171..fb782530fc 100644 --- a/fastapi/sse.py +++ b/fastapi/sse.py @@ -201,7 +201,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] = []