Fix wrong overwrite of commit:711992c8e2e811abd450cb665008bb0a1b3e29a9

This commit is contained in:
Nozomi Anzai 2016-06-30 10:48:39 +09:00
parent 6586cc4029
commit bdf68b2183

View File

@ -44,7 +44,6 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht
} else if ds.Type == m.DS_INFLUXDB {
req.URL.Path = util.JoinUrlFragments(targetUrl.Path, proxyPath)
req.URL.RawQuery = reqQueryVals.Encode()
reqQueryVals.Add("db", ds.Database)
if !ds.BasicAuth {
req.Header.Del("Authorization")
req.Header.Add("Authorization", util.GetBasicAuthHeader(ds.User, ds.Password))