mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
use configured Transport instead of defaultHttpTransport
This commit is contained in:
parent
25be602dce
commit
a1e835884b
@ -31,7 +31,7 @@ type basicAuthTransport struct {
|
||||
|
||||
func (bat basicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
req.SetBasicAuth(bat.username, bat.password)
|
||||
return http.DefaultTransport.RoundTrip(req)
|
||||
return bat.Transport.RoundTrip(req)
|
||||
}
|
||||
|
||||
func NewPrometheusExecutor(dsInfo *models.DataSource) (tsdb.Executor, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user