Simplify how the DefaultDialer is initialised for clarity.

This commit is contained in:
Mark Wolfe 2015-10-18 22:26:54 +11:00
parent f71d4a996f
commit 3bb3652173
1 changed files with 1 additions and 1 deletions

View File

@ -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).