mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 16:34:13 +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)
|
||||
writeline(out, [&code](const mutable_buffer &out) -> size_t
|
||||
{
|
||||
return fmt::sprintf
|
||||
{
|
||||
out, "Server: %s (IRCd %s)", BRANDING_NAME, BRANDING_VERSION
|
||||
};
|
||||
return copy(out, "Server: " BRANDING_NAME " (IRCd " BRANDING_VERSION ")"_sv);
|
||||
});
|
||||
|
||||
if(code < 400)
|
||||
|
|
Loading…
Reference in a new issue