Skip to content

Commit

Permalink
Fix http proxy behavior (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoang committed Feb 18, 2022
1 parent ad8a07a commit b85d2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fasthttpproxy/http.go
Expand Up @@ -49,7 +49,7 @@ func FasthttpHTTPDialerTimeout(proxy string, timeout time.Duration) fasthttp.Dia
return nil, err
}

req := "CONNECT " + addr + " HTTP/1.1\r\n"
req := fmt.Sprintf("CONNECT %s HTTP/1.1\r\nHost: %s\r\n", addr, addr)
if auth != "" {
req += "Proxy-Authorization: Basic " + auth + "\r\n"
}
Expand Down

0 comments on commit b85d2a2

Please sign in to comment.