Fixed req.Host in datasource proxy, Fixes #1478

This commit is contained in:
Torkel Ödegaard 2015-02-13 07:26:33 +01:00
parent e65a6cc063
commit 1a44036148

View File

@ -17,6 +17,7 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string) *httputil.ReverseProxy
director := func(req *http.Request) {
req.URL.Scheme = target.Scheme
req.URL.Host = target.Host
req.Host = target.Host
reqQueryVals := req.URL.Query()