Commit a1e83588 by hagen1778

use configured Transport instead of defaultHttpTransport

parent 25be602d
...@@ -31,7 +31,7 @@ type basicAuthTransport struct { ...@@ -31,7 +31,7 @@ type basicAuthTransport struct {
func (bat basicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) { func (bat basicAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) {
req.SetBasicAuth(bat.username, bat.password) req.SetBasicAuth(bat.username, bat.password)
return http.DefaultTransport.RoundTrip(req) return bat.Transport.RoundTrip(req)
} }
func NewPrometheusExecutor(dsInfo *models.DataSource) (tsdb.Executor, error) { func NewPrometheusExecutor(dsInfo *models.DataSource) (tsdb.Executor, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment