mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd::http: Simplify server response generation.
This commit is contained in:
parent
7aa1dedd86
commit
cd0dc9a0ff
1 changed files with 1 additions and 4 deletions
|
@ -384,10 +384,7 @@ ircd::http::response::response(stream_buffer &out,
|
||||||
if(code >= 200 && code < 300)
|
if(code >= 200 && code < 300)
|
||||||
writeline(out, [&code](const mutable_buffer &out) -> size_t
|
writeline(out, [&code](const mutable_buffer &out) -> size_t
|
||||||
{
|
{
|
||||||
return fmt::sprintf
|
return copy(out, "Server: " BRANDING_NAME " (IRCd " BRANDING_VERSION ")"_sv);
|
||||||
{
|
|
||||||
out, "Server: %s (IRCd %s)", BRANDING_NAME, BRANDING_VERSION
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if(code < 400)
|
if(code < 400)
|
||||||
|
|
Loading…
Reference in a new issue