diff --git a/core/src/services/cos/core.rs b/core/src/services/cos/core.rs index ef7ff14b7c48..9132f7e9fe24 100644 --- a/core/src/services/cos/core.rs +++ b/core/src/services/cos/core.rs @@ -356,13 +356,6 @@ impl CosCore { // Set user metadata headers. if let Some(user_metadata) = args.user_metadata() { for (key, value) in user_metadata { - // before insert user defined metadata header, add prefix to the header name - if !self.check_user_metadata_key(key) { - return Err(Error::new( - ErrorKind::Unsupported, - "the format of the user metadata key is invalid, please refer the document", - )); - } req = req.header(format!("x-cos-meta-{key}"), value) } }