mirror of https://github.com/Dreamacro/clash.git
Fix: HTTP proxy internal linkage signature (#1555)
This commit is contained in:
parent
847f41952e
commit
c6d375eda2
|
@ -7,4 +7,4 @@ import (
|
|||
)
|
||||
|
||||
//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
|
||||
|
||||
for keepAlive {
|
||||
request, err := ReadRequest(conn.Reader(), false)
|
||||
request, err := ReadRequest(conn.Reader())
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue