Change variable name for clarity

This commit is contained in:
Jeff Mitchell
2015-09-03 13:38:24 -04:00
parent 1a2c44d805
commit 4d6ebab007

View File

@@ -11,8 +11,8 @@ import (
) )
var ( var (
errRedirect = errors.New("redirect") errRedirect = errors.New("redirect")
defaultHandlerSetup sync.Once defaultHTTPClientSetup sync.Once
) )
// Config is used to configure the creation of the client. // Config is used to configure the creation of the client.
@@ -66,7 +66,7 @@ func NewClient(c *Config) (*Client, error) {
} }
if c.HttpClient == http.DefaultClient { if c.HttpClient == http.DefaultClient {
defaultHandlerSetup.Do(func() { defaultHTTPClientSetup.Do(func() {
// Ensure redirects are not automatically followed // Ensure redirects are not automatically followed
c.HttpClient.CheckRedirect = func(req *http.Request, via []*http.Request) error { c.HttpClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
return errRedirect return errRedirect