ircd::http: Allow empty header values.

This commit is contained in:
Jason Volk 2023-04-04 12:27:43 -07:00
parent 7be2582714
commit d4d8063dee
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ namespace ircd::http::parser
const rule<string_view> reason { str ,"reason" };
const rule<string_view> head_key { raw[+(char_ - (illegal | ws | colon))] ,"head key" };
const rule<string_view> head_val { str ,"head value" };
const rule<string_view> head_val { -str ,"head value" };
const rule<http::header> header { head_key >> *ws >> colon >> *ws >> head_val ,"header" };
const rule<> headers { header % (*ws >> CRLF) ,"headers" };