fix http read

pull/314/head
Darien Raymond 8 years ago
parent 13b1bf09cf
commit e0116d3957
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -41,7 +41,7 @@ type HeaderReader struct {
} }
func (*HeaderReader) Read(reader io.Reader) (*alloc.Buffer, error) { func (*HeaderReader) Read(reader io.Reader) (*alloc.Buffer, error) {
buffer := alloc.NewSmallBuffer() buffer := alloc.NewSmallBuffer().Clear()
for { for {
_, err := buffer.FillFrom(reader) _, err := buffer.FillFrom(reader)
if err != nil { if err != nil {

Loading…
Cancel
Save