From e0116d3957f4b792c37de2ab20e91182bfee673f Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 22 Nov 2016 00:52:26 +0100 Subject: [PATCH] fix http read --- transport/internet/authenticators/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/authenticators/http/http.go b/transport/internet/authenticators/http/http.go index 37ea2d59..4817b5bc 100644 --- a/transport/internet/authenticators/http/http.go +++ b/transport/internet/authenticators/http/http.go @@ -41,7 +41,7 @@ type HeaderReader struct { } func (*HeaderReader) Read(reader io.Reader) (*alloc.Buffer, error) { - buffer := alloc.NewSmallBuffer() + buffer := alloc.NewSmallBuffer().Clear() for { _, err := buffer.FillFrom(reader) if err != nil {