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

ircd::http: Use unsigned 32bit type for chunk size.

This commit is contained in:
Jason Volk 2020-05-05 17:32:41 -07:00
parent 7d949427e3
commit 63e0543175
2 changed files with 3 additions and 3 deletions

View file

@ -296,7 +296,7 @@ struct ircd::http::response::head
struct ircd::http::response::chunk
:line
{
size_t size {0};
uint32_t size {0};
chunk(parse::capstan &pc);
chunk() = default;

View file

@ -161,9 +161,9 @@ struct ircd::http::grammar
rule<string_view> fragment { pound >> -token ,"fragment" };
rule<string_view> version { token ,"version" };
rule<size_t> chunk_size
rule<uint32_t> chunk_size
{
qi::uint_parser<size_t, 16, 1, 8>{}
qi::uint_parser<uint32_t, 16, 1, 8>{}
,"chunk size"
};