This commit is contained in:
tgmtime 2024-05-14 12:55:57 +03:00
parent 451ddecbd7
commit 820f0962ca

View file

@ -200,6 +200,8 @@ func DialOptions(ctx context.Context, rawurl string, options ...ClientOption) (*
} }
cfg := new(clientConfig) cfg := new(clientConfig)
//http1.1 => http2
tr := &http.Transport{ tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // İsteğe bağlı, güvenlik önlemleri gerektiğinde uygun şekilde ayarlayın TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // İsteğe bağlı, güvenlik önlemleri gerektiğinde uygun şekilde ayarlayın
ForceAttemptHTTP2: true, // !!!note: bu kısmı eklersen HTTP/2'yi etkinleştirirsin eklemezsende default olarak http1.1 çalışır ForceAttemptHTTP2: true, // !!!note: bu kısmı eklersen HTTP/2'yi etkinleştirirsin eklemezsende default olarak http1.1 çalışır