mirror of https://github.com/perkeep/perkeep.git
Match common Go case
Change-Id: I14606ee5ba422cf43f68dc65af2b40a096c7ca35
This commit is contained in:
parent
afac3e1f5b
commit
91cdda8475
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue