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:
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)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue