aboutsummaryrefslogtreecommitdiff
path: root/fasthttpproxy
diff options
context:
space:
mode:
authorGravatar LeoSun <379978424@qq.com> 2023-04-05 04:48:48 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-04 13:48:48 -0700
commit239cce45b1321b40b0cd4d3542b48c986b9f3c9b (patch)
tree49578b3fabf4f22c57385f59ed5537fea33788fa /fasthttpproxy
parentremove (#1534) (diff)
downloadfasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.tar.gz
fasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.tar.bz2
fasthttp-239cce45b1321b40b0cd4d3542b48c986b9f3c9b.zip
format : update some codes style (#1533)
* update some codes style * update adaptor.go and client.go * Update fasthttpproxy/http.go Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com> --------- Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
Diffstat (limited to 'fasthttpproxy')
-rw-r--r--fasthttpproxy/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/fasthttpproxy/http.go b/fasthttpproxy/http.go
index 9dd5a25..94d2b09 100644
--- a/fasthttpproxy/http.go
+++ b/fasthttpproxy/http.go
@@ -51,7 +51,7 @@ func FasthttpHTTPDialerTimeout(proxy string, timeout time.Duration) fasthttp.Dia
return nil, err
}
- req := fmt.Sprintf("CONNECT %s HTTP/1.1\r\nHost: %s\r\n", addr, addr)
+ req := "CONNECT " + addr + " HTTP/1.1\r\nHost: " + addr + "\r\n"
if auth != "" {
req += "Proxy-Authorization: Basic " + auth + "\r\n"
}