Skip to content

Commit

Permalink
api: fix the certificate problem in API client (#2363)
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <nolouch@gmail.com>
  • Loading branch information
nolouch authored Apr 21, 2020
1 parent d0193e9 commit 4dae8a3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions server/api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ import (
"net/http"
"net/url"

"github.com/pingcap/pd/v4/server/cluster"
"github.com/pkg/errors"
)

// dialClient used to dial http request.
var dialClient = &http.Client{
Transport: &http.Transport{
DisableKeepAlives: true,
},
}

var (

// dialClient used to dial http request.
dialClient = cluster.DialClient
errNoImplement = errors.New("no implement")
errOptionNotExist = func(name string) error { return errors.Errorf("the option %s does not exist", name) }
)
Expand Down

0 comments on commit 4dae8a3

Please sign in to comment.