mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
One more fix
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user