0
0
Fork 0
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:
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)
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)