feat(datasource): cancel in flight data source requests, refeatoring #5321

This commit is contained in:
Torkel Ödegaard
2016-06-16 10:48:26 +02:00
parent 6d3521c240
commit 81e9aa4de4
6 changed files with 205 additions and 208 deletions

View File

@ -63,6 +63,8 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht
req.Header.Add("Authorization", dsAuth)
}
time.Sleep(time.Second * 5)
// clear cookie headers
req.Header.Del("Cookie")
req.Header.Del("Set-Cookie")