From 08cff31d854b3ce8704f5cacc0b876d132429456 Mon Sep 17 00:00:00 2001 From: novaeye Date: Fri, 18 Dec 2015 12:34:12 +0800 Subject: [PATCH] fix test failed. --- middleware/proxy/proxy_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/middleware/proxy/proxy_test.go b/middleware/proxy/proxy_test.go index 55abe2dc2..f1c69e839 100644 --- a/middleware/proxy/proxy_test.go +++ b/middleware/proxy/proxy_test.go @@ -111,6 +111,10 @@ func (u *fakeUpstream) From() string { return "/" } +func (u *fakeUpstream) ProxyRedirects() map[string]string { + return make(map[string]string) +} + func (u *fakeUpstream) Select() *UpstreamHost { uri, _ := url.Parse(u.name) return &UpstreamHost{