Merge pull request #44 from harnnless/patch-1

Fix HTTP2 support fix #43
This commit is contained in:
Musab Gültekin authored and GitHub committed 2021-12-11 14:04:10 +03:00
commit 34d17a2d3d
1 file changed
+1
+1
View File
@@ -68,6 +68,7 @@ func NewClient(opt *Options) *Client {
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
ForceAttemptHTTP2: true,
MaxIdleConns: 0, // Default: 100
MaxIdleConnsPerHost: 1000, // Default: 2
IdleConnTimeout: 90 * time.Second,