Update vendor/
Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
a582b3335a
commit
cdb9e7d2b8
527 changed files with 113006 additions and 150362 deletions
6
vendor/github.com/prometheus/common/config/http_config.go
generated
vendored
6
vendor/github.com/prometheus/common/config/http_config.go
generated
vendored
|
|
@ -29,6 +29,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/mwitkow/go-conntrack"
|
||||
"golang.org/x/net/http2"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
|
|
@ -153,6 +154,11 @@ func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, disableKeepAli
|
|||
conntrack.DialWithName(name),
|
||||
),
|
||||
}
|
||||
// TODO: use ForceAttemptHTTP2 when we move to Go 1.13+.
|
||||
err := http2.ConfigureTransport(rt.(*http.Transport))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// If a bearer token is provided, create a round tripper that will set the
|
||||
// Authorization header correctly on each request.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue