Fix: HTTP proxy internal linkage signature (#1555)

This commit is contained in:
gVisor bot 2021-08-20 23:38:47 +08:00
parent cb4ddfc8ca
commit 5046f3beab
2 changed files with 2 additions and 2 deletions

View file

@ -7,4 +7,4 @@ import (
) )
//go:linkname ReadRequest net/http.readRequest //go:linkname ReadRequest net/http.readRequest
func ReadRequest(b *bufio.Reader, deleteHostHeader bool) (req *http.Request, err error) func ReadRequest(b *bufio.Reader) (req *http.Request, err error)

View file

@ -24,7 +24,7 @@ func HandleConn(c net.Conn, in chan<- C.ConnContext, cache *cache.Cache) {
trusted := cache == nil // disable authenticate if cache is nil trusted := cache == nil // disable authenticate if cache is nil
for keepAlive { for keepAlive {
request, err := ReadRequest(conn.Reader(), false) request, err := ReadRequest(conn.Reader())
if err != nil { if err != nil {
break break
} }