We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f743707 commit 365efc0Copy full SHA for 365efc0
1 file changed
src/zeropsRestApiClient/handler.go
@@ -16,9 +16,15 @@ type Handler struct {
16
func NewAuthorizedClient(token string, regionUrl string) *Handler {
17
config := sdkBase.DefaultConfig(sdkBase.WithCustomEndpoint(regionUrl))
18
19
+ httpClient := &http.Client{
20
+ Transport: &http.Transport{
21
+ DisableKeepAlives: true,
22
+ },
23
+ }
24
+
25
return &Handler{
- Handler: sdk.AuthorizeSdk(sdk.New(config, http.DefaultClient), token),
26
+ Handler: sdk.AuthorizeSdk(sdk.New(config, httpClient), token),
27
// temporary solution, I need my own endpoints
- env: sdkBase.NewEnvironment(config, http.DefaultClient).Authorize(token),
28
+ env: sdkBase.NewEnvironment(config, httpClient).Authorize(token),
29
}
30
0 commit comments