Skip to content

Commit 8ff48c1

Browse files
committed
fix(merge): minor merge fix
1 parent 6da3af5 commit 8ff48c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/api/api_plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import (
66
"net/http/httputil"
77
"net/url"
88

9-
"github.com/Unknwon/macaron"
9+
"gopkg.in/macaron.v1"
10+
1011
"github.com/grafana/grafana/pkg/log"
1112
"github.com/grafana/grafana/pkg/middleware"
1213
m "github.com/grafana/grafana/pkg/models"
@@ -53,7 +54,7 @@ func ApiPlugin(routeUrl string) macaron.Handler {
5354
targetUrl, _ := url.Parse(routeUrl)
5455
proxy := NewApiPluginProxy(string(ctx), path, targetUrl)
5556
proxy.Transport = dataProxyTransport
56-
proxy.ServeHTTP(c.RW(), c.Req.Request)
57+
proxy.ServeHTTP(c.Resp, c.Req.Request)
5758
}
5859
}
5960

0 commit comments

Comments
 (0)