Fix: HTTP proxy internal linkage signature (#1555)
This commit is contained in:
parent
cb4ddfc8ca
commit
5046f3beab
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue