Commit 4f704cec by Torkel Ödegaard

fix: ds_proxy test not initiating header

parent 2459b177
...@@ -219,7 +219,7 @@ func TestDSRouteRule(t *testing.T) { ...@@ -219,7 +219,7 @@ func TestDSRouteRule(t *testing.T) {
proxy := NewDataSourceProxy(ds, plugin, ctx, "/render") proxy := NewDataSourceProxy(ds, plugin, ctx, "/render")
requestURL, _ := url.Parse("http://grafana.com/sub") requestURL, _ := url.Parse("http://grafana.com/sub")
req := http.Request{URL: requestURL} req := http.Request{URL: requestURL, Header: http.Header{}}
proxy.getDirector()(&req) proxy.getDirector()(&req)
...@@ -244,7 +244,7 @@ func TestDSRouteRule(t *testing.T) { ...@@ -244,7 +244,7 @@ func TestDSRouteRule(t *testing.T) {
proxy := NewDataSourceProxy(ds, plugin, ctx, "") proxy := NewDataSourceProxy(ds, plugin, ctx, "")
requestURL, _ := url.Parse("http://grafana.com/sub") requestURL, _ := url.Parse("http://grafana.com/sub")
req := http.Request{URL: requestURL} req := http.Request{URL: requestURL, Header: http.Header{}}
proxy.getDirector()(&req) proxy.getDirector()(&req)
......
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