Skip to content

Commit 617594c

Browse files
authored
sse: Add space between duration and : (#3403)
1 parent fb64e72 commit 617594c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

axum/src/response/sse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ impl Event {
307307
self
308308
}
309309

310-
/// Set the event's retry timeout field (`retry:<timeout>`).
310+
/// Set the event's retry timeout field (`retry: <timeout>`).
311311
///
312312
/// This sets how long clients will wait before reconnecting if they are disconnected from the
313313
/// SSE endpoint. Note that this is just a hint: clients are free to wait for longer if they
@@ -323,7 +323,7 @@ impl Event {
323323
self.flags.insert(EventFlags::HAS_RETRY);
324324

325325
let buffer = self.buffer.as_mut();
326-
buffer.extend_from_slice(b"retry:");
326+
buffer.extend_from_slice(b"retry: ");
327327

328328
let secs = duration.as_secs();
329329
let millis = duration.subsec_millis();

0 commit comments

Comments
 (0)