From a585379bbb1876b8c67dbfef844a5b10e6b97e48 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 28 Jul 2015 13:50:21 -0600 Subject: [PATCH] proxy: Parse error if property is unknown --- middleware/proxy/upstream.go | 2 ++ 1 file changed, 2 insertions(+) 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()) } }