1
0
mirror of https://github.com/minio/minio-cpp.git synced 2025-04-18 08:24:00 +03:00

fix GetObject add headers logic (#192)

This commit is contained in:
Qingchuan Zhang 2025-02-12 00:54:31 +08:00 committed by GitHub
parent 89e4c0bfe1
commit 49e578d286
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -894,7 +894,7 @@ GetObjectResponse BaseClient::GetObject(GetObjectArgs args) {
req.userdata = args.userdata;
req.progressfunc = args.progressfunc;
req.progress_userdata = args.progress_userdata;
if (args.ssec != nullptr) req.headers.AddAll(args.ssec->Headers());
req.headers.AddAll(args.Headers());
return GetObjectResponse(Execute(req));
}