From 4a1ed0ae01b120ba83ac4d040228682e11c93a26 Mon Sep 17 00:00:00 2001 From: Richard LT Date: Thu, 18 Jun 2020 10:11:44 +0200 Subject: [PATCH] fix(sdk): missing host path part on websocket request (#5263) --- sdk/cdsclient/http_websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cdsclient/http_websocket.go b/sdk/cdsclient/http_websocket.go index 45b0106c81..efc0ccb1f9 100644 --- a/sdk/cdsclient/http_websocket.go +++ b/sdk/cdsclient/http_websocket.go @@ -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)