diff --git a/middleware/proxy/upstream.go b/middleware/proxy/upstream.go index cca5c772..9a2a0104 100644 --- a/middleware/proxy/upstream.go +++ b/middleware/proxy/upstream.go @@ -109,6 +109,8 @@ func NewStaticUpstreams(c parse.Dispenser) ([]Upstream, error) { return upstreams, c.ArgErr() } upstream.WithoutPathPrefix = c.Val() + default: + return upstreams, c.Errf("unknown property '%s'", c.Val()) } }