feat(import): working on unit tests for import ctrl

This commit is contained in:
Torkel Ödegaard
2016-05-27 13:52:19 +02:00
parent f6633c8189
commit 540def2c39
7 changed files with 77 additions and 4 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"time"
"github.com/grafana/grafana/pkg/middleware"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/util"
)
@@ -27,7 +28,7 @@ func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy {
req.URL.Host = "grafana.net"
req.Host = "grafana.net"
req.URL.Path = util.JoinUrlFragments("https://grafana.net/api", proxyPath)
req.URL.Path = util.JoinUrlFragments(setting.GrafanaNetUrl+"/api", proxyPath)
// clear cookie headers
req.Header.Del("Cookie")