From 51b6b8521bffced130110e75a220de95d0899c09 Mon Sep 17 00:00:00 2001 From: comwrg Date: Mon, 27 Apr 2020 22:20:35 +0800 Subject: [PATCH] Fix: typo (#657) --- tunnel/connection.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tunnel/connection.go b/tunnel/connection.go index 65d45d46..0af760cc 100644 --- a/tunnel/connection.go +++ b/tunnel/connection.go @@ -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 }