0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::http: Fix headers view parse to cover expected trailing crlf.

This commit is contained in:
Jason Volk 2022-06-22 15:33:38 -07:00
parent 01c2c55054
commit ee59e76305

View file

@ -679,7 +679,7 @@ ircd::http::headers::headers(parse::capstan &pc,
{
header h{pc};
const char *const &started{h.first.data()}, *stopped{started};
for(; !h.first.empty(); stopped = h.second.data() + h.second.size(), h = header{pc})
for(; !h.first.empty(); stopped = pc.parsed, h = header{pc})
if(c && !c(h))
c = {};