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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user