diff --git a/proxy/merging.go b/proxy/merging.go index 6f26714b8..5d4aaf4c1 100644 --- a/proxy/merging.go +++ b/proxy/merging.go @@ -82,15 +82,12 @@ func hasUnsafeBackends(cfg *config.EndpointConfig) bool { return false } - hasOneUnsafe := false for _, b := range cfg.Backend { if m := strings.ToUpper(b.Method); m != http.MethodGet && m != http.MethodHead { - if hasOneUnsafe { - return true - } - hasOneUnsafe = true + return true } } + return false }