aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/util/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/internal/util/http.go')
-rw-r--r--client/go/internal/util/http.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/go/internal/util/http.go b/client/go/internal/util/http.go
index 8a67b24dffb..546098a204d 100644
--- a/client/go/internal/util/http.go
+++ b/client/go/internal/util/http.go
@@ -16,7 +16,6 @@ import (
type HTTPClient interface {
Do(request *http.Request, timeout time.Duration) (response *http.Response, error error)
- Clone() HTTPClient
}
type defaultHTTPClient struct {
@@ -34,8 +33,6 @@ func (c *defaultHTTPClient) Do(request *http.Request, timeout time.Duration) (re
return c.client.Do(request)
}
-func (c *defaultHTTPClient) Clone() HTTPClient { return CreateClient(c.client.Timeout) }
-
func ConfigureTLS(client HTTPClient, certificates []tls.Certificate, caCertificate []byte, trustAll bool) {
c, ok := client.(*defaultHTTPClient)
if !ok {
@@ -81,8 +78,9 @@ func ForceHTTP2(client HTTPClient, certificates []tls.Certificate, caCertificate
// https://github.com/golang/go/issues/16582
// https://github.com/golang/go/issues/22091
c.client.Transport = &http2.Transport{
- AllowHTTP: true,
- DialTLSContext: dialFunc,
+ DisableCompression: true,
+ AllowHTTP: true,
+ DialTLSContext: dialFunc,
}
ConfigureTLS(client, certificates, caCertificate, trustAll)
}