File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ struct ComposeObjectArgs : public ObjectWriteArgs {
360
360
361
361
struct UploadObjectArgs : public PutObjectBaseArgs {
362
362
std::string filename;
363
- std::ios_base::openmode openmode = std::ios_base::in;
364
363
http::ProgressFunction progressfunc = nullptr ;
365
364
void * progress_userdata = nullptr ;
366
365
Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ UploadObjectResponse Client::UploadObject(UploadObjectArgs args) {
777
777
std::ifstream file;
778
778
file.exceptions (std::ifstream::failbit | std::ifstream::badbit);
779
779
try {
780
- file.open (args.filename , args. openmode );
780
+ file.open (args.filename );
781
781
} catch (std::system_error& err) {
782
782
return error::make<UploadObjectResponse>(
783
783
" unable to open file " + args.filename + " ; " + err.code ().message ());
You can’t perform that action at this time.
0 commit comments