From dafdaa42080b573432b2f93e25860945393f2d44 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 15 Feb 2018 16:06:03 +0100 Subject: [PATCH] Correct conditional setting of buffering retry expression. --- Gopkg.lock | 2 +- vendor/github.com/vulcand/oxy/buffer/buffer.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index c27114d8e..66d98b646 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -1173,7 +1173,7 @@ "roundrobin", "utils" ] - revision = "6a7a2a4e0782bf83cfe731d59a219178f2c26be9" + revision = "dacf34285ce530b272e9fe04d2f45f52e6374e36" [[projects]] name = "github.com/vulcand/predicate" diff --git a/vendor/github.com/vulcand/oxy/buffer/buffer.go b/vendor/github.com/vulcand/oxy/buffer/buffer.go index 65fe039ec..735443d9f 100644 --- a/vendor/github.com/vulcand/oxy/buffer/buffer.go +++ b/vendor/github.com/vulcand/oxy/buffer/buffer.go @@ -104,7 +104,7 @@ type optSetter func(b *Buffer) error // CondSetter Conditional setter. // ex: Cond(a > 4, MemRequestBodyBytes(a)) func CondSetter(condition bool, setter optSetter) optSetter { - if condition { + if !condition { // NoOp setter return func(*Buffer) error { return nil