0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

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

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" };