Merge branch 'new_macaron'

This commit is contained in:
Torkel Ödegaard
2016-01-13 15:48:49 +01:00
156 changed files with 10337 additions and 6330 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
package api
import (
"github.com/Unknwon/macaron"
"github.com/go-macaron/binding"
"github.com/grafana/grafana/pkg/api/dtos"
"github.com/grafana/grafana/pkg/middleware"
m "github.com/grafana/grafana/pkg/models"
"github.com/macaron-contrib/binding"
"gopkg.in/macaron.v1"
)
// Register adds http routes
+1 -1
View File
@@ -4,11 +4,11 @@ import (
"encoding/json"
"net/http"
"github.com/Unknwon/macaron"
"github.com/grafana/grafana/pkg/log"
"github.com/grafana/grafana/pkg/metrics"
"github.com/grafana/grafana/pkg/middleware"
"github.com/grafana/grafana/pkg/setting"
"gopkg.in/macaron.v1"
)
var (
+1 -1
View File
@@ -102,6 +102,6 @@ func ProxyDataSourceRequest(c *middleware.Context) {
proxyPath := c.Params("*")
proxy := NewReverseProxy(ds, proxyPath, targetUrl)
proxy.Transport = dataProxyTransport
proxy.ServeHTTP(c.RW(), c.Req.Request)
proxy.ServeHTTP(c.Resp, c.Req.Request)
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ import (
"strings"
"sync"
"github.com/Unknwon/macaron"
"gopkg.in/macaron.v1"
)
var Root string