From bd5e49f8f48a12a7e55e35a5023efe2b6d3bb067 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 7 Jun 2021 10:21:55 -0400 Subject: [PATCH] avoid assert fail on an ok with no additional headers --- http2.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http2.d b/http2.d index 17cc9ec..5d221f3 100644 --- a/http2.d +++ b/http2.d @@ -1655,7 +1655,8 @@ class HttpRequest { responseData.headers[$-1] ~= data[position]; } - parseLastHeader(); + if(responseData.headers.length) + parseLastHeader(); data = data[position .. $]; }