mirror of https://github.com/v2ray/v2ray-core
fix http read
parent
13b1bf09cf
commit
e0116d3957
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue