Browse Source

Fix trailing period in SSE comment (F56)

pull/15597/head
Josef Vacha 2 weeks ago
parent
commit
df4c46f348
No known key found for this signature in database GPG Key ID: 2065E2B36C682351
  1. 2
      fastapi/sse.py

2
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.

Loading…
Cancel
Save