mirror of https://github.com/gorilla/websocket.git
Simplify how the DefaultDialer is initialised for clarity.
This commit is contained in:
parent
f71d4a996f
commit
3bb3652173
|
@ -154,7 +154,7 @@ func hostPortNoPort(u *url.URL) (hostPort, hostNoPort string) {
|
|||
}
|
||||
|
||||
// DefaultDialer is a dialer with all fields set to the default zero values.
|
||||
var DefaultDialer *Dialer
|
||||
var DefaultDialer = &Dialer{}
|
||||
|
||||
// Dial creates a new client connection. Use requestHeader to specify the
|
||||
// origin (Origin), subprotocols (Sec-WebSocket-Protocol) and cookies (Cookie).
|
||||
|
|
Loading…
Reference in New Issue