One more fix

This commit is contained in:
Leonid Bugaev
2015-07-17 11:38:42 +05:00
parent e5d9f73937
commit ac3e209787
+1 -1
View File
@@ -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
}
}