Skip to content

Commit 6a49d81

Browse files
committed
Fix bad merge
1 parent 281f9c1 commit 6a49d81

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/server.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ impl Encoder {
136136
} else {
137137
std::io::Write::write_fmt(&mut head, format_args!("Transfer-Encoding: chunked\r\n"))?;
138138
}
139-
140-
139+
141140
let date = fmt_http_date(std::time::SystemTime::now());
142-
std::io::Write::write_fmt(&mut buf, format_args!("Date: {}\r\n", date))?;
141+
std::io::Write::write_fmt(&mut head, format_args!("Date: {}\r\n", date))?;
143142

144143
for (header, value) in self.res.headers().iter() {
145144
std::io::Write::write_fmt(

0 commit comments

Comments
 (0)