From 34203aa608543469d06ab4c208b69ff3430cfbc7 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Mon, 24 Nov 2014 02:13:35 -0800 Subject: [PATCH 1/2] Fix compile error --- src/header/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/mod.rs b/src/header/mod.rs index 3588b2d5..d2e7a3f1 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -432,7 +432,7 @@ pub struct HeaderFormatter(H); impl Show for HeaderFormatter { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - self.fmt_header(f) + self.0.fmt_header(f) } } From ff76e1c83721e7dfe4e80da3562e015770ace966 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Mon, 24 Nov 2014 02:22:17 -0800 Subject: [PATCH 2/2] 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.