Match common Go case

Change-Id: I14606ee5ba422cf43f68dc65af2b40a096c7ca35
This commit is contained in:
Brad Fitzpatrick 2013-09-01 09:13:13 -07:00
parent afac3e1f5b
commit 91cdda8475
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ func newFromConfig(_ blobserver.Loader, config jsonconfig.Obj) (storage blobserv
AccessKey: config.RequiredString("aws_access_key"),
SecretAccessKey: config.RequiredString("aws_secret_access_key"),
},
HttpClient: http.DefaultClient,
HTTPClient: http.DefaultClient,
}
sto := &s3Storage{
s3Client: client,

View File

@ -35,7 +35,7 @@ import (
type Client struct {
*Auth
HttpClient *http.Client // or nil for default client
HTTPClient *http.Client // or nil for default client
}
type Bucket struct {
@ -44,8 +44,8 @@ type Bucket struct {
}
func (c *Client) httpClient() *http.Client {
if c.HttpClient != nil {
return c.HttpClient
if c.HTTPClient != nil {
return c.HTTPClient
}
return http.DefaultClient
}