We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
:
1 parent fb64e72 commit 617594cCopy full SHA for 617594c
axum/src/response/sse.rs
@@ -307,7 +307,7 @@ impl Event {
307
self
308
}
309
310
- /// Set the event's retry timeout field (`retry:<timeout>`).
+ /// Set the event's retry timeout field (`retry: <timeout>`).
311
///
312
/// This sets how long clients will wait before reconnecting if they are disconnected from the
313
/// SSE endpoint. Note that this is just a hint: clients are free to wait for longer if they
@@ -323,7 +323,7 @@ impl Event {
323
self.flags.insert(EventFlags::HAS_RETRY);
324
325
let buffer = self.buffer.as_mut();
326
- buffer.extend_from_slice(b"retry:");
+ buffer.extend_from_slice(b"retry: ");
327
328
let secs = duration.as_secs();
329
let millis = duration.subsec_millis();
0 commit comments