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

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

No files matched your search

+2
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")