Skip to content

Commit 2b494a7

Browse files
committed
Fix: HTTP proxy basic auth error (#266)
1 parent 7ab86fd commit 2b494a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (h *HTTP) shakeHand(metadata *M.Metadata, rw io.ReadWriter) error {
6161
}
6262

6363
if h.user != "" && h.pass != "" {
64-
req.Header.Set("Proxy-Authorization", basicAuth(h.user, h.pass))
64+
req.Header.Set("Proxy-Authorization", fmt.Sprintf("Basic %s", basicAuth(h.user, h.pass)))
6565
}
6666

6767
if err := req.Write(rw); err != nil {

0 commit comments

Comments
 (0)