diff --git a/cmd/listen-notification-handlers.go b/cmd/listen-notification-handlers.go index 097ce1af9..0888804c2 100644 --- a/cmd/listen-notification-handlers.go +++ b/cmd/listen-notification-handlers.go @@ -139,6 +139,9 @@ func (api objectAPIHandlers) ListenNotificationHandler(w http.ResponseWriter, r return rulesMap.MatchSimple(ev.EventName, ev.S3.Object.Key) }) + if bucketName != "" { + values.Set(peerRESTListenBucket, bucketName) + } for _, peer := range peers { if peer == nil { continue