diff --git a/core/src/services/obs/backend.rs b/core/src/services/obs/backend.rs index a62ddfa89e84..a14bb6044887 100644 --- a/core/src/services/obs/backend.rs +++ b/core/src/services/obs/backend.rs @@ -15,6 +15,7 @@ // specific language governing permissions and limitations // under the License. +use std::collections::HashMap; use std::fmt::Debug; use std::fmt::Formatter; use std::sync::Arc; @@ -314,7 +315,7 @@ impl Access for ObsBackend { // The response is very similar to azblob. match status { StatusCode::OK => { - let mut meta = parse_into_metadata(path, headers); + let mut meta = parse_into_metadata(path, headers)?; let user_meta = headers .iter() .filter_map(|(name, _)| {