Browse Source

fix(influxdb): align tsdb.influxdb with dataproxy

ref #6784
bergquist 9 years ago
parent
commit
f70d7ff3a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tsdb/influxdb/influxdb.go

+ 1 - 1
pkg/tsdb/influxdb/influxdb.go

@@ -127,7 +127,7 @@ func (e *InfluxDBExecutor) createRequest(query string) (*http.Request, error) {
 		req.SetBasicAuth(e.BasicAuthUser, e.BasicAuthPassword)
 	}
 
-	if e.User != "" {
+	if !e.BasicAuth && e.User != "" {
 		req.SetBasicAuth(e.User, e.Password)
 	}