mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 16:22:45 +08:00
Fixed req.Host in datasource proxy, Fixes #1478
This commit is contained in:
@ -17,6 +17,7 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string) *httputil.ReverseProxy
|
|||||||
director := func(req *http.Request) {
|
director := func(req *http.Request) {
|
||||||
req.URL.Scheme = target.Scheme
|
req.URL.Scheme = target.Scheme
|
||||||
req.URL.Host = target.Host
|
req.URL.Host = target.Host
|
||||||
|
req.Host = target.Host
|
||||||
|
|
||||||
reqQueryVals := req.URL.Query()
|
reqQueryVals := req.URL.Query()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user