mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
http: Proxy-Authorization header
This commit is contained in:
parent
632f45448b
commit
1889de7f7f
2
http.go
2
http.go
@ -194,7 +194,7 @@ func (s *HTTP) Dial(network, addr string) (net.Conn, error) {
|
|||||||
|
|
||||||
if s.user != "" && s.password != "" {
|
if s.user != "" && s.password != "" {
|
||||||
auth := 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
|
var b [1024]byte
|
||||||
|
Loading…
Reference in New Issue
Block a user