瀏覽代碼

fix(influxdb): align tsdb.influxdb with dataproxy

ref #6784
bergquist 9 年之前
父節點
當前提交
f70d7ff3a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 	}