From 1889de7f7ff0d197a5b613edd14fb36e9509fbd0 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Sun, 17 Dec 2017 01:01:11 +0800 Subject: [PATCH] http: Proxy-Authorization header --- http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.go b/http.go index 780939e..cdfc031 100644 --- a/http.go +++ b/http.go @@ -194,7 +194,7 @@ func (s *HTTP) Dial(network, addr string) (net.Conn, error) { if s.user != "" && s.password != "" { auth := s.user + ":" + s.password - rc.Write([]byte("Authorization: Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) + "\r\n")) + rc.Write([]byte("Proxy-Authorization: Basic " + base64.StdEncoding.EncodeToString([]byte(auth)) + "\r\n")) } var b [1024]byte