diff --git a/core/services/s3/src/core.rs b/core/services/s3/src/core.rs index 643c95dc98cb..01ad544b9893 100644 --- a/core/services/s3/src/core.rs +++ b/core/services/s3/src/core.rs @@ -318,6 +318,10 @@ impl S3Core { req = req.header(IF_MATCH, if_match); } + if let Some(if_none_match) = args.if_none_match() { + req = req.header(IF_NONE_MATCH, if_none_match); + } + if args.if_not_exists() { req = req.header(IF_NONE_MATCH, "*"); } @@ -927,6 +931,9 @@ impl S3Core { if let Some(if_match) = args.if_match() { req = req.header(IF_MATCH, if_match); } + if let Some(if_none_match) = args.if_none_match() { + req = req.header(IF_NONE_MATCH, if_none_match); + } if args.if_not_exists() { req = req.header(IF_NONE_MATCH, "*"); }