mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +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)
|
||||
};
|
||||
|
||||
const bool chunk_dynamic_header_mode
|
||||
{
|
||||
chunk_header_mode && null(request->in.content)
|
||||
};
|
||||
|
||||
assert(request);
|
||||
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 || !chunk_header_mode);
|
||||
assert(state.content_read <= state.content_length || chunk_dynamic_header_mode);
|
||||
|
||||
if(state.status == (http::code)0)
|
||||
return make_read_head_buffer();
|
||||
|
|
Loading…
Add table
Reference in a new issue