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:
parent
924970f8fb
commit
2a5c234d76
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue