0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +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()) if(!headers_s.empty())
out([&headers_s](const mutable_buffer &out) out([&headers_s](const mutable_buffer &out)
{ {
assert(endswith(headers_s, "\r\n"));
return copy(out, headers_s); return copy(out, headers_s);
}); });