We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ce117 commit b40d2e7Copy full SHA for b40d2e7
1 file changed
src/main.rs
@@ -334,6 +334,9 @@ fn stream_header(stream: &mut Box<dyn Write + Send + 'static>) {
334
fn stream_http(stream: &mut Box<dyn Write + Send + 'static>, finish: bool) {
335
stream.write_all(b"HTTP/1.1 200 OK\r\n").unwrap();
336
stream.write_all(b"Transfer-Encoding: chunked\r\n").unwrap();
337
+ stream
338
+ .write_all(b"Content-Type: text/event-stream\r\n")
339
+ .unwrap();
340
stream
341
.write_all(b"Content-Type: text/plain; charset=utf-8\r\n")
342
.unwrap();
0 commit comments