Merge pull request #3254 from lorenz/allow-http2

Allow HTTP/2
This commit is contained in:
Alexander Neumann
2021-02-02 21:08:20 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ func Transport(opts TransportOptions) (http.RoundTripper, error) {
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
ForceAttemptHTTP2: true,
MaxIdleConns: 100,
MaxIdleConnsPerHost: 100,
IdleConnTimeout: 90 * time.Second,