From 1b9e688ff13533bd8050661772a8d1987c99ae1c Mon Sep 17 00:00:00 2001 From: Evan Rittenhouse Date: Wed, 18 Sep 2024 09:40:15 -0500 Subject: [PATCH] h3i: Don't panic on empty header block --- h3i/src/prompts/h3/headers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h3i/src/prompts/h3/headers.rs b/h3i/src/prompts/h3/headers.rs index bcabd714a1..14c2e89b59 100644 --- a/h3i/src/prompts/h3/headers.rs +++ b/h3i/src/prompts/h3/headers.rs @@ -75,7 +75,7 @@ pub fn prompt_headers( sid_alloc.take_next_id(); - let header_block = encode_header_block(&headers).unwrap(); + let header_block = encode_header_block(&headers).unwrap_or_default(); let fin_stream = prompt_fin_stream()?;