mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
Fixed req.Host in datasource proxy, Fixes #1478
This commit is contained in:
parent
e65a6cc063
commit
1a44036148
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user