mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::server: Fix assertion.
This commit is contained in:
parent
87fb5a771e
commit
87dafbf8ea
1 changed files with 6 additions and 1 deletions
|
@ -3457,10 +3457,15 @@ const
|
||||||
state.chunk_length == size_t(-1)
|
state.chunk_length == size_t(-1)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const bool chunk_dynamic_header_mode
|
||||||
|
{
|
||||||
|
chunk_header_mode && null(request->in.content)
|
||||||
|
};
|
||||||
|
|
||||||
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 + state.chunk_read);
|
assert(state.content_read <= state.content_length + state.chunk_read);
|
||||||
assert(state.content_read <= state.content_length || !chunk_header_mode);
|
assert(state.content_read <= state.content_length || chunk_dynamic_header_mode);
|
||||||
|
|
||||||
if(state.status == (http::code)0)
|
if(state.status == (http::code)0)
|
||||||
return make_read_head_buffer();
|
return make_read_head_buffer();
|
||||||
|
|
Loading…
Reference in a new issue