1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-01 00:06:11 -04:00

fix http read

This commit is contained in:
Darien Raymond 2016-11-22 00:52:26 +01:00
parent 13b1bf09cf
commit e0116d3957
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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