Skip to content

Commit 0e9b549

Browse files
chore(storage): Restart & delete resumable upload part 2 (googleapis#23376)
1 parent cdf6281 commit 0e9b549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google-apis-core/lib/google/apis/core/base_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def delete_resumable_upload(bucket, upload_id, options: nil)
376376
command = make_storage_upload_command(:delete, 'b/{bucket}/o', options)
377377
command.upload_id = upload_id
378378
command.params['bucket'] = bucket unless bucket.nil?
379-
command.delete_upload = options[:delete_upload] unless options[:delete_upload].nil?
379+
command.delete_upload = true
380380
execute_or_queue_command(command)
381381
end
382382

google-apis-core/spec/google/apis/core/service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
service.send(
297297
:delete_resumable_upload,
298298
bucket_name, upload_id,
299-
options: { upload_chunk_size: 11, delete_upload: true }
299+
options: { upload_chunk_size: 11}
300300
)
301301
end
302302

0 commit comments

Comments
 (0)