3
0

More precies matching for sink request event

This commit is contained in:
Denis Arh
2020-01-10 11:06:52 +01:00
parent 54a81e42f3
commit 22496a3418
+3 -1
View File
@@ -17,8 +17,10 @@ func (res sinkBase) Match(c eventbus.ConstraintMatcher) bool {
// Handles sink matchers
func sinkMatch(r *types.SinkRequest, c eventbus.ConstraintMatcher) bool {
switch c.Name() {
case "url", "request.url":
case "request.url":
return c.Match(r.RequestURL)
case "request.content-type":
r.Header.Get("content-type")
}
return true