0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::http: Assert supplied header string is terminated by caller.

This commit is contained in:
Jason Volk 2020-06-12 18:05:42 -07:00
parent 924970f8fb
commit 2a5c234d76

View file

@ -524,6 +524,7 @@ ircd::http::response::response(window_buffer &out,
if(!headers_s.empty())
out([&headers_s](const mutable_buffer &out)
{
assert(endswith(headers_s, "\r\n"));
return copy(out, headers_s);
});