mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 21:33:50 +08:00
stupid stupid stupid me
This commit is contained in:
@ -45,7 +45,7 @@ func (e *GraphiteExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryC
|
|||||||
client := http.Client{Timeout: time.Duration(10 * time.Second)}
|
client := http.Client{Timeout: time.Duration(10 * time.Second)}
|
||||||
req, _ := http.NewRequest(http.MethodPost, e.Url+"/render?", strings.NewReader(params.Encode()))
|
req, _ := http.NewRequest(http.MethodPost, e.Url+"/render?", strings.NewReader(params.Encode()))
|
||||||
if e.BasicAuth {
|
if e.BasicAuth {
|
||||||
req.SetBasicAuth("carl", "carl")
|
req.SetBasicAuth(e.BasicAuthPassword, e.BasicAuthPassword)
|
||||||
}
|
}
|
||||||
|
|
||||||
res, err := client.Do(req)
|
res, err := client.Do(req)
|
||||||
|
Reference in New Issue
Block a user