From ac3e20978717b49b90bbd724d06711ab4d692fd4 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Fri, 17 Jul 2015 11:38:42 +0500 Subject: [PATCH] One more fix --- http_modifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_modifier.go b/http_modifier.go index e2c50cb..14cdf85 100644 --- a/http_modifier.go +++ b/http_modifier.go @@ -100,7 +100,7 @@ func (m *HTTPModifier) Rewrite(payload []byte) (response []byte) { for _, f := range m.config.headerNegativeFilters { value := proto.Header(payload, f.name) - if s != -1 && f.regexp.Match(value) { + if len(value) > 0 && f.regexp.Match(value) { return } }