distribution/registry
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
..
api Fuzzing: Rewrite existing fuzzers to native go fuzzers 2022-11-12 17:30:10 +00:00
auth replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
client Merge pull request #3788 from thaJeztah/deprecate_ReadSeekCloser 2022-11-18 08:53:15 +00:00
handlers replace strings.Split(N) for strings.Cut() or alternatives 2022-11-10 22:38:12 +01:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware format code with gofumpt 2022-11-03 22:48:20 +01:00
proxy Merge pull request #3787 from thaJeztah/simplify_mocks 2022-11-18 08:53:26 +00:00
storage Use default http.Transport for AWS S3 session 2023-02-15 13:37:01 -05:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Merge pull request #3772 from thaJeztah/registry_logging_simplify 2022-11-08 09:17:20 +01:00
registry_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
root.go format code with gofumpt 2022-11-03 22:48:20 +01:00