fix: properly reject prioritized HEADERS with stream ID of zero

This commit is contained in:
Sean McArthur
2021-11-22 17:04:24 -08:00
parent ce81583cf1
commit dbaa3a4285

View File

@@ -146,6 +146,10 @@ impl Headers {
tracing::trace!("loading headers; flags={:?}", flags);
if head.stream_id().is_zero() {
return Err(Error::InvalidStreamId);
}
// Read the padding length
if flags.is_padded() {
if src.is_empty() {