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) {