From ff76e1c83721e7dfe4e80da3562e015770ace966 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Mon, 24 Nov 2014 02:22:17 -0800 Subject: [PATCH] Fuse ChunkedReader after end Remove debug --- src/http.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http.rs b/src/http.rs index 1651c9ae..bc599e2e 100644 --- a/src/http.rs +++ b/src/http.rs @@ -82,6 +82,8 @@ impl Reader for HttpReader { debug!("Chunked read, remaining={}", rem); if rem == 0 { + *opt_remaining = Some(0); + // chunk of size 0 signals the end of the chunked stream // if the 0 digit was missing from the stream, it would // be an InvalidInput error instead.