Skip to content

Commit

Permalink
fix(sdk): missing host path part on websocket request (#5263)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt authored Jun 18, 2020
1 parent 38da0f0 commit 4a1ed0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/cdsclient/http_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (c *client) RequestWebsocket(ctx context.Context, path string, msgToSend <-
urlWebsocket := url.URL{
Scheme: strings.Replace(uHost.Scheme, "http", "ws", -1),
Host: uHost.Host,
Path: "/ws",
Path: uHost.Path + "/ws",
}

headers := make(map[string][]string)
Expand Down

0 comments on commit 4a1ed0a

Please sign in to comment.