mirror of
https://github.com/nadoo/glider.git
synced 2026-11-23 23:49:41 +08:00
http: Proxy-Authorization header
This commit is contained in:
1 parent
632f45448b
commit
1889de7f7f
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user