Skip to content

Commit

Permalink
fix for issue cloudfoundry#210
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Apr 20, 2021
1 parent c23962c commit b02e151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ func NewClientFromEnv() (*Client, error) {

// New creates a new OSB Client connected to the given resource.
func New(username, password, hostname string, port int) (*Client, error) {
base := fmt.Sprintf("http://%s:%s@%s:%d/v2/", username, password, hostname, port)
pwd := url.QueryEscape(password)
base := fmt.Sprintf("http://%s:%s@%s:%d/v2/", username, pwd, hostname, port)
baseUrl, err := url.Parse(base)
if err != nil {
return nil, err
Expand Down

0 comments on commit b02e151

Please sign in to comment.