1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-01 07:08:59 +00:00

Make websocket dialer use same TLSClientConfig has http client

This commit is contained in:
Darren Shepherd
2018-06-19 11:18:04 -07:00
parent 875bcf4b2d
commit fbc49a97af
2 changed files with 9 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import (
"io/ioutil"
"net/http"
"github.com/gorilla/websocket"
"github.com/pkg/errors"
"github.com/rancher/norman/types"
)
@@ -16,6 +17,7 @@ type APIOperations struct {
Opts *ClientOpts
Types map[string]types.Schema
Client *http.Client
Dialer *websocket.Dialer
}
func (a *APIOperations) SetupRequest(req *http.Request) {