0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00

ircd::server: Relax assertion.

This commit is contained in:
Jason Volk 2019-04-24 18:20:47 -07:00
parent 75abe2b0f9
commit 5bb98356e0

View file

@ -3459,7 +3459,8 @@ const
assert(request); assert(request);
assert(state.head_read <= size(request->in.head)); assert(state.head_read <= size(request->in.head));
assert(state.content_read <= state.content_length); assert(state.content_read <= state.content_length + state.chunk_read);
assert(state.content_read <= state.content_length || !chunk_header_mode);
if(state.status == (http::code)0) if(state.status == (http::code)0)
return make_read_head_buffer(); return make_read_head_buffer();