http2: remove assertion which can be wrong

Brotli decoder stops consuming input it it reaches the
end of its input

(cherry picked from commit b3c502d572)
pull/6184/head
Philippe Antoine 5 years ago committed by Victor Julien
parent 6109855bca
commit eb250e5512

@ -135,8 +135,8 @@ fn http2_decompress<'a>(
}
}
}
//checks all input was consumed
debug_validate_bug_on!(decoder.get_mut().position() < (input.len() as u64));
//brotli does not consume all input if it reaches some end
decoder.get_mut().set_position(0);
return Ok(&output[..offset]);
}

Loading…
Cancel
Save