Skip to content

Commit

Permalink
remove http2
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvk committed Sep 24, 2024
1 parent 9f8ee96 commit db07353
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/juruen/rmapi/log"
"github.com/juruen/rmapi/model"
"github.com/juruen/rmapi/util"
"golang.org/x/net/http2"
)

type AuthType int
Expand Down Expand Up @@ -48,8 +47,7 @@ type HttpClientCtx struct {
}

func CreateHttpClientCtx(tokens model.AuthTokens) HttpClientCtx {
var httpClient = &http.Client{Timeout: 5 * 60 * time.Second,
Transport: &http2.Transport{}}
var httpClient = &http.Client{Timeout: 5 * 60 * time.Second}

return HttpClientCtx{httpClient, tokens}
}
Expand Down

0 comments on commit db07353

Please sign in to comment.