Fix: HTTP proxy internal linkage signature (#1555)

This commit is contained in:
Digital Pencil 2021-08-20 23:38:47 +08:00 committed by GitHub
parent 847f41952e
commit c6d375eda2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
} }