1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

Fix http/2 date header generation

This commit is contained in:
Nikolay Kim
2018-03-20 11:40:05 -07:00
parent 978091cedb
commit c4f4cadb43
4 changed files with 10 additions and 4 deletions

View File

@@ -183,6 +183,10 @@ impl<H> WorkerSettings<H> {
buf[35..].copy_from_slice(b"\r\n\r\n");
dst.extend_from_slice(&buf);
}
pub fn set_date_simple(&self, dst: &mut BytesMut) {
dst.extend_from_slice(&(unsafe{&*self.date.get()}.bytes));
}
}
struct Date {