From 563dc4c8755ca7eb60b08f4d6425267e2978d475 Mon Sep 17 00:00:00 2001 From: richardlt Date: Wed, 17 Jun 2020 18:17:04 +0200 Subject: [PATCH] fix(sdk): missing host path part on websocket request --- 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)