mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 23:28:20 +01:00
Add comments for new tls transport
To explain why use this to avoid replication hang forever issue Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
parent
b728f04d0a
commit
e0b98685f3
@ -57,6 +57,8 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// Use this instead of Default Transport in library because it sets ForceAttemptHTTP2 to true
|
||||
// And that options introduced in go 1.13 will cause the https requests hang forever in replication environment
|
||||
func newDefaultTransport() *http.Transport {
|
||||
return &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
|
Loading…
Reference in New Issue
Block a user