0
0
Fork 0
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:
Jason Volk 2018-01-11 18:42:22 -08:00
parent 7aa1dedd86
commit cd0dc9a0ff

View file

@ -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)