mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 18:46:17 +00:00
fix(ecstore): read provider tier version headers (#5041)
Refs rustfs/backlog#1358 Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ use tokio_util::io::StreamReader;
|
||||
use crate::client::{
|
||||
api_error_response::err_invalid_argument,
|
||||
api_get_options::GetObjectOptions,
|
||||
transition_api::{ObjectInfo, ReadCloser, ReaderImpl, RequestMetadata, TransitionClient, to_object_info},
|
||||
transition_api::{ObjectInfo, ReadCloser, ReaderImpl, RequestMetadata, TransitionClient, to_object_info_for_provider},
|
||||
};
|
||||
use futures_util::StreamExt;
|
||||
use http_body_util::BodyExt;
|
||||
@@ -77,7 +77,8 @@ impl TransitionClient {
|
||||
)
|
||||
.await?;
|
||||
|
||||
let object_stat = to_object_info(bucket_name, object_name, resp.headers())?;
|
||||
let object_stat =
|
||||
to_object_info_for_provider(bucket_name, object_name, resp.headers(), self.provider_version_capabilities())?;
|
||||
|
||||
let h = resp.headers().clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user