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 26c6cdf commit 80cd4f1Copy full SHA for 80cd4f1
src/sse/endpoint.rs
@@ -58,8 +58,8 @@ where
58
// Perform the handshake as described here:
59
// https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
60
let mut res = Response::new(StatusCode::Ok);
61
- res.res.insert_header("Cache-Control", "no-cache").unwrap();
62
- res.res.set_content_type(mime::SSE);
+ res.insert_header("Cache-Control", "no-cache");
+ res.set_content_type(mime::SSE);
63
64
let body = Body::from_reader(BufReader::new(encoder), None);
65
res.set_body(body);
0 commit comments