Skip to content

Commit 40099b6

Browse files
committed
datasources: apiserver: removed unnecessary code
1 parent fc34b18 commit 40099b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/registry/apis/datasource/sub_query.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
data "github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1"
1414
"github.com/grafana/grafana/pkg/apimachinery/errutil"
1515
query "github.com/grafana/grafana/pkg/apis/query/v0alpha1"
16-
query_headers "github.com/grafana/grafana/pkg/registry/apis/query"
1716
"github.com/grafana/grafana/pkg/services/datasources"
1817

1918
"github.com/grafana/grafana/pkg/web"
@@ -91,7 +90,7 @@ func (r *subQueryREST) Connect(ctx context.Context, name string, opts runtime.Ob
9190
rsp, err := r.builder.client.QueryData(ctx, &backend.QueryDataRequest{
9291
Queries: queries,
9392
PluginContext: pluginCtx,
94-
Headers: query_headers.ExtractKnownHeaders(req.Header),
93+
Headers: map[string]string{},
9594
})
9695

9796
// all errors get converted into k8 errors when sent in responder.Error and lose important context like downstream info

0 commit comments

Comments
 (0)