mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
Upgraded all dependencies
This commit is contained in:
parent
01919d0ef1
commit
02f364c29b
10 changed files with 1385 additions and 578 deletions
|
|
@ -54,9 +54,10 @@ func (c *httpAPIClient) Do(ctx context.Context, verb, endpoint string, query url
|
|||
u := *c.baseURL
|
||||
u.Path = path.Join(c.baseURL.Path, endpoint)
|
||||
var reqBody io.Reader
|
||||
if verb == http.MethodGet {
|
||||
switch verb {
|
||||
case http.MethodGet:
|
||||
u.RawQuery = query.Encode()
|
||||
} else if verb == http.MethodPost {
|
||||
case http.MethodPost:
|
||||
reqBody = strings.NewReader(query.Encode())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue