Skip to content

Commit fb9e91e

Browse files
committed
Merge branch 'master' of github.com:grafana/grafana
2 parents 1429737 + 96af2de commit fb9e91e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

conf/defaults.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ path = grafana.db
6767

6868
#################################### Session ####################################
6969
[session]
70-
# Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
70+
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
7171
provider = file
7272

7373
# Provider config options

conf/sample.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
#################################### Session ####################################
6969
[session]
70-
# Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
70+
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
7171
;provider = file
7272

7373
# Provider config options

pkg/api/dataproxy_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ func TestDataSourceProxy(t *testing.T) {
1414

1515
Convey("When getting graphite datasource proxy", t, func() {
1616
ds := m.DataSource{Url: "htttp://graphite:8080", Type: m.DS_GRAPHITE}
17-
proxy := NewReverseProxy(&ds, "/render")
17+
targetUrl, _ := url.Parse(ds.Url)
18+
proxy := NewReverseProxy(&ds, "/render", targetUrl)
1819

1920
requestUrl, _ := url.Parse("http://grafana.com/sub")
2021
req := http.Request{URL: requestUrl}
@@ -36,7 +37,8 @@ func TestDataSourceProxy(t *testing.T) {
3637
Password: "password",
3738
}
3839

39-
proxy := NewReverseProxy(&ds, "")
40+
targetUrl, _ := url.Parse(ds.Url)
41+
proxy := NewReverseProxy(&ds, "", targetUrl)
4042

4143
requestUrl, _ := url.Parse("http://grafana.com/sub")
4244
req := http.Request{URL: requestUrl}

0 commit comments

Comments
 (0)