mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd::http: date_buf off stack.
This commit is contained in:
parent
2991144b38
commit
8140130a3a
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ ircd::http::response::response(window_buffer &out,
|
|||
if(code < 400)
|
||||
writeline(out, [](const mutable_buffer &out) -> size_t
|
||||
{
|
||||
char date_buf[96];
|
||||
thread_local char date_buf[96];
|
||||
return fmt::sprintf
|
||||
{
|
||||
out, "Date: %s", timef(date_buf, ircd::localtime)
|
||||
|
|
Loading…
Add table
Reference in a new issue