Skip to content

Commit 95a0de5

Browse files
committed
Remove double content type header
1 parent b40d2e7 commit 95a0de5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ fn stream_http(stream: &mut Box<dyn Write + Send + 'static>, finish: bool) {
337337
stream
338338
.write_all(b"Content-Type: text/event-stream\r\n")
339339
.unwrap();
340-
stream
341-
.write_all(b"Content-Type: text/plain; charset=utf-8\r\n")
342-
.unwrap();
340+
// stream
341+
// .write_all(b"Content-Type: text/plain; charset=utf-8\r\n")
342+
// .unwrap();
343343

344344
if finish {
345345
stream.write_all(b"\r\n").unwrap();

0 commit comments

Comments
 (0)