Skip to content

Commit b9f004d

Browse files
authored
aws: Initialize default HTTP client when one isn't provided (#850)
The comment mentioned that when unset, Tessera uses the default client, but I noticed this wasn't being set while testing. This mirrors the behavior of the GCP and POSIX storage backends as well.
1 parent 96a0688 commit b9f004d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/aws/aws.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ func New(ctx context.Context, cfg Config) (tessera.Driver, error) {
175175
} else {
176176
printDragonsWarning()
177177
}
178+
if cfg.HTTPClient == nil {
179+
cfg.HTTPClient = http.DefaultClient
180+
}
178181

179182
return &Storage{
180183
cfg: cfg,

0 commit comments

Comments
 (0)