Skip to content

Commit

Permalink
Fix: HTTP proxy basic auth error (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Jun 20, 2023
1 parent 7ab86fd commit 2b494a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2b494a7

Please sign in to comment.