distribution/registry/storage/driver/s3-aws
Kirat Singh 3117e2eb2f
Use default http.Transport for AWS S3 session
Previously we used a custom Transport in order to modify the user agent header.
This prevented the AWS SDK from being able to customize SSL and other client TLS
parameters since it could not understand the Transport type.

Instead we can simply use the SDK function MakeAddToUserAgentFreeFormHandler to
customize the UserAgent if necessary and leave all the TLS configuration to the
AWS SDK.

The only exception being SkipVerify which we have to handle, but we can set it
onto the standard http.Transport which does not interfere with the SDKs ability
to set other options.

Signed-off-by: Kirat Singh <kirat.singh@gmail.com>
2023-02-15 13:37:01 -05:00
..
s3.go Use default http.Transport for AWS S3 session 2023-02-15 13:37:01 -05:00
s3_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
s3_v2_signer.go Fix gometalint errors 2019-02-04 16:01:04 -08:00