mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: set authentication header properly (#31699)
This commit is contained in:
parent
862f09376f
commit
53d4acdad2
@ -60,6 +60,10 @@ func (e *tempoExecutor) Query(ctx context.Context, dsInfo *models.DataSource, ts
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if dsInfo.BasicAuth {
|
||||
req.SetBasicAuth(dsInfo.BasicAuthUser, dsInfo.DecryptedBasicAuthPassword())
|
||||
}
|
||||
|
||||
req.Header.Set("Accept", "application/protobuf")
|
||||
|
||||
resp, err := e.httpClient.Do(req)
|
||||
|
Loading…
Reference in New Issue
Block a user