From ee59e7630589110b460d04719128203a9ec70e77 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 22 Jun 2022 15:33:38 -0700 Subject: [PATCH] ircd::http: Fix headers view parse to cover expected trailing crlf. --- ircd/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/http.cc b/ircd/http.cc index eb1f262ce..63fa63930 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -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 = {};