@@ -213,7 +213,7 @@ func TestProxyStripsPath(t *testing.T) {
213213 Transport : http .DefaultTransport ,
214214 Lookup : func (r * http.Request ) * route.Target {
215215 tbl , _ := route .NewTable (bytes .NewBufferString ("route add mock /foo/bar " + server .URL + ` opts "strip=/foo"` ))
216- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
216+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
217217 },
218218 })
219219 defer proxy .Close ()
@@ -241,7 +241,7 @@ func TestProxyPrependsPath(t *testing.T) {
241241 Transport : http .DefaultTransport ,
242242 Lookup : func (r * http.Request ) * route.Target {
243243 tbl , _ := route .NewTable (bytes .NewBufferString ("route add mock /bar " + server .URL + ` opts "prepend=/foo"` ))
244- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
244+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
245245 },
246246 })
247247 defer proxy .Close ()
@@ -277,7 +277,7 @@ func TestProxyHost(t *testing.T) {
277277 },
278278 },
279279 Lookup : func (r * http.Request ) * route.Target {
280- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
280+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
281281 },
282282 })
283283 defer proxy .Close ()
@@ -324,7 +324,7 @@ func TestHostRedirect(t *testing.T) {
324324 Transport : http .DefaultTransport ,
325325 Lookup : func (r * http.Request ) * route.Target {
326326 r .Host = "c.com"
327- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
327+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
328328 },
329329 })
330330 defer proxy .Close ()
@@ -363,7 +363,7 @@ func TestPathRedirect(t *testing.T) {
363363 proxy := httptest .NewServer (& HTTPProxy {
364364 Transport : http .DefaultTransport ,
365365 Lookup : func (r * http.Request ) * route.Target {
366- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
366+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
367367 },
368368 })
369369 defer proxy .Close ()
@@ -531,7 +531,7 @@ func TestProxyHTTPSUpstream(t *testing.T) {
531531 Transport : & http.Transport {TLSClientConfig : tlsClientConfig ()},
532532 Lookup : func (r * http.Request ) * route.Target {
533533 tbl , _ := route .NewTable (bytes .NewBufferString ("route add srv / " + server .URL + ` opts "proto=https"` ))
534- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
534+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
535535 },
536536 })
537537 defer proxy .Close ()
@@ -569,7 +569,7 @@ func TestProxyHTTPSTransport(t *testing.T) {
569569 Transport : & http.Transport {TLSClientConfig : tlsClientConfig ()},
570570 Lookup : func (r * http.Request ) * route.Target {
571571 tbl , _ := route .NewTable (bytes .NewBufferString ("route add srv / " + server .URL + ` opts "proto=https host=foo.com tlsskipverify=true"` ))
572- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
572+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
573573 },
574574 })
575575 defer proxy .Close ()
@@ -600,7 +600,7 @@ func TestProxyHTTPSUpstreamSkipVerify(t *testing.T) {
600600 },
601601 Lookup : func (r * http.Request ) * route.Target {
602602 tbl , _ := route .NewTable (bytes .NewBufferString ("route add srv / " + server .URL + ` opts "proto=https tlsskipverify=true"` ))
603- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
603+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
604604 },
605605 })
606606 defer proxy .Close ()
@@ -812,7 +812,7 @@ func BenchmarkProxyLogger(b *testing.B) {
812812 Transport : http .DefaultTransport ,
813813 Lookup : func (r * http.Request ) * route.Target {
814814 tbl , _ := route .NewTable (bytes .NewBufferString ("route add mock / " + server .URL ))
815- return tbl .Lookup (r , "" , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
815+ return tbl .Lookup (r , route .Picker ["rr" ], route .Matcher ["prefix" ], globCache , globEnabled )
816816 },
817817 Logger : l ,
818818 }
0 commit comments