From 495e664ba3f9ca9329c11b5ce47bbe28c80c31fc Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 29 Nov 2021 09:24:43 -0500 Subject: [PATCH] deal with header state in correct order so packet/buffer boundaries dont break --- http2.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http2.d b/http2.d index 687fa52..a642a8a 100644 --- a/http2.d +++ b/http2.d @@ -1950,13 +1950,13 @@ class HttpRequest { case 5: // reading footers //goto done; // FIXME - bodyReadingState.chunkedState = 0; - while(data[a] != 10) { a++; if(a == data.length) return stillAlive; // in the footer state we're just discarding everything until we're done so this should be ok } + + bodyReadingState.chunkedState = 0; data = data[a + 1 .. $]; if(bodyReadingState.isGzipped || bodyReadingState.isDeflated) {