From 3bb36521739c9bd41991d82ea55b5ef3d81683d8 Mon Sep 17 00:00:00 2001 From: Mark Wolfe Date: Sun, 18 Oct 2015 22:26:54 +1100 Subject: [PATCH] Simplify how the DefaultDialer is initialised for clarity. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 93db8dd..a5c6659 100644 --- a/client.go +++ b/client.go @@ -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).