Skip to content

Commit

Permalink
removed key check
Browse files Browse the repository at this point in the history
  • Loading branch information
geetanshjuneja committed Jan 7, 2025
1 parent ed49fce commit 2842b18
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/src/services/cos/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 2842b18

Please sign in to comment.