Browse Source
Fix trailing period in SSE comment (F56)
pull/15597/head
Josef Vacha
2 weeks ago
No known key found for this signature in database
GPG Key ID: 2065E2B36C682351
1 changed files with
1 additions and
1 deletions
-
fastapi/sse.py
|
|
|
@ -227,7 +227,7 @@ def format_sse_event( |
|
|
|
return "\n".join(lines).encode("utf-8") |
|
|
|
|
|
|
|
|
|
|
|
# Keep-alive comment, per the SSE spec recommendation |
|
|
|
# Keep-alive comment, per the SSE spec recommendation. |
|
|
|
KEEPALIVE_COMMENT = b": ping\n\n" |
|
|
|
|
|
|
|
# Seconds between keep-alive pings when a generator is idle. |
|
|
|
|