use configured Transport instead of defaultHttpTransport

This commit is contained in:
hagen1778 2017-02-07 11:56:59 +02:00
parent 25be602dce
commit a1e835884b

View File

@ -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) {