From d4d8063deed9627f9ace97e96d6fc720f466668f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 4 Apr 2023 12:27:43 -0700 Subject: [PATCH] ircd::http: Allow empty header values. --- ircd/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/http.cc b/ircd/http.cc index 97f3c9916..795e822e5 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -151,7 +151,7 @@ namespace ircd::http::parser const rule reason { str ,"reason" }; const rule head_key { raw[+(char_ - (illegal | ws | colon))] ,"head key" }; - const rule head_val { str ,"head value" }; + const rule head_val { -str ,"head value" }; const rule header { head_key >> *ws >> colon >> *ws >> head_val ,"header" }; const rule<> headers { header % (*ws >> CRLF) ,"headers" };