mirror of
https://github.com/versity/versitygw.git
synced 2026-08-17 12:46:23 +00:00
fix: Fixed s3 event filtering wildcard case bug
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ func (ef EventFilter) Filter(event EventType) bool {
|
||||
}
|
||||
|
||||
// check wildcard match
|
||||
wildCardEv := EventType(string(event[strings.LastIndex(string(event), ":")+1]) + "*")
|
||||
wildCardEv := EventType(string(event[:strings.LastIndex(string(event), ":")+1]) + "*")
|
||||
wildcard, found := ef[wildCardEv]
|
||||
if found {
|
||||
return wildcard
|
||||
|
||||
Reference in New Issue
Block a user