fix: pass sdk header transport to websocket connections (#6521)

Fixes #6520.
This commit is contained in:
Kyle Carberry
2023-03-09 02:29:02 +00:00
committed by GitHub
parent d67552f852
commit db2bdd1cab
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -284,7 +284,8 @@ func (c *Client) WorkspaceAgentReconnectingPTY(ctx context.Context, agentID, rec
Value: c.SessionToken(),
}})
httpClient := &http.Client{
Jar: jar,
Jar: jar,
Transport: c.HTTPClient.Transport,
}
conn, res, err := websocket.Dial(ctx, serverURL.String(), &websocket.DialOptions{
HTTPClient: httpClient,