Skip to content

Commit 89e281d

Browse files
updating requests
1 parent 238a1e2 commit 89e281d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def verify_universe_domain!
359359
# unique id generated for an ongoing upload
360360

361361
def restart_resumable_upload(bucket, upload_source, upload_id, options: nil)
362-
command = make_storage_upload_command(:post, 'b/{bucket}/o', options)
362+
command = make_storage_upload_command(:put, 'b/{bucket}/o', options)
363363
command.upload_source = upload_source
364364
command.upload_id = upload_id
365365
command.params['bucket'] = bucket unless bucket.nil?
@@ -375,7 +375,7 @@ def restart_resumable_upload(bucket, upload_source, upload_id, options: nil)
375375
# unique id generated for an ongoing upload
376376

377377
def delete_resumable_upload(bucket, upload_id, options: nil)
378-
command = make_storage_upload_command(:post, 'b/{bucket}/o', options)
378+
command = make_storage_upload_command(:delete, 'b/{bucket}/o', options)
379379
command.upload_id = upload_id
380380
command.params['bucket'] = bucket unless bucket.nil?
381381
command.delete_upload = options[:delete_upload] unless options[:delete_upload].nil?

0 commit comments

Comments
 (0)