Fix: typo (#657)

This commit is contained in:
comwrg 2020-04-27 22:20:35 +08:00 committed by GitHub
parent e5379558f6
commit 51b6b8521b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,8 +18,8 @@ func handleHTTP(request *adapters.HTTPAdapter, outbound net.Conn) {
req := request.R
host := req.Host
inboundReeder := bufio.NewReader(request)
outboundReeder := bufio.NewReader(outbound)
inboundReader := bufio.NewReader(request)
outboundReader := bufio.NewReader(outbound)
for {
keepAlive := strings.TrimSpace(strings.ToLower(req.Header.Get("Proxy-Connection"))) == "keep-alive"
@ -33,7 +33,7 @@ func handleHTTP(request *adapters.HTTPAdapter, outbound net.Conn) {
}
handleResponse:
resp, err := http.ReadResponse(outboundReeder, req)
resp, err := http.ReadResponse(outboundReader, req)
if err != nil {
break
}
@ -68,7 +68,7 @@ func handleHTTP(request *adapters.HTTPAdapter, outbound net.Conn) {
break
}
req, err = http.ReadRequest(inboundReeder)
req, err = http.ReadRequest(inboundReader)
if err != nil {
break
}