Fix: HTTP proxy basic auth error (#266)

This commit is contained in:
xjasonlyu
2023-06-20 14:40:54 +08:00
parent 7ab86fd9b0
commit 2b494a7517
+1 -1
View File
@@ -61,7 +61,7 @@ func (h *HTTP) shakeHand(metadata *M.Metadata, rw io.ReadWriter) error {
}
if h.user != "" && h.pass != "" {
req.Header.Set("Proxy-Authorization", basicAuth(h.user, h.pass))
req.Header.Set("Proxy-Authorization", fmt.Sprintf("Basic %s", basicAuth(h.user, h.pass)))
}
if err := req.Write(rw); err != nil {