0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd::http: date_buf off stack.

This commit is contained in:
Jason Volk 2018-05-19 19:58:37 -07:00
parent 2991144b38
commit 8140130a3a

View file

@ -338,7 +338,7 @@ ircd::http::response::response(window_buffer &out,
if(code < 400) if(code < 400)
writeline(out, [](const mutable_buffer &out) -> size_t writeline(out, [](const mutable_buffer &out) -> size_t
{ {
char date_buf[96]; thread_local char date_buf[96];
return fmt::sprintf return fmt::sprintf
{ {
out, "Date: %s", timef(date_buf, ircd::localtime) out, "Date: %s", timef(date_buf, ircd::localtime)