summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-09-14 15:51:01 +0000
committerNick Thomas <nick@gitlab.com>2018-09-14 15:51:01 +0000
commit877c88897ee6f72b81a76e9abfc32f1d1fdb61b6 (patch)
treefd4e470cf9d1506d25c144b0e4a6da0cb317a634 /lib
parentabdb0d3680a67d175f73eebc99408f42565d8c9c (diff)
parent244ed8adb3bc2d1b4706a695e19e144e180084f3 (diff)
downloadgitlab-ce-877c88897ee6f72b81a76e9abfc32f1d1fdb61b6.tar.gz
Merge branch 'sh-fix-multipart-upload-signed-urls' into 'master'
Fix object storage uploads not working with AWS v2 Closes gitlab-workhorse#181 See merge request gitlab-org/gitlab-ce!21731
Diffstat (limited to 'lib')
-rw-r--r--lib/object_storage/direct_upload.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/object_storage/direct_upload.rb b/lib/object_storage/direct_upload.rb
index ab43910c8bd..97f56e10ccf 100644
--- a/lib/object_storage/direct_upload.rb
+++ b/lib/object_storage/direct_upload.rb
@@ -89,7 +89,7 @@ module ObjectStorage
method: 'PUT',
bucket_name: bucket_name,
object_name: object_name,
- query: { uploadId: upload_id, partNumber: part_number },
+ query: { 'uploadId' => upload_id, 'partNumber' => part_number },
headers: upload_options
}, expire_at)
end
@@ -100,7 +100,7 @@ module ObjectStorage
method: 'POST',
bucket_name: bucket_name,
object_name: object_name,
- query: { uploadId: upload_id },
+ query: { 'uploadId' => upload_id },
headers: { 'Content-Type' => 'application/xml' }
}, expire_at)
end
@@ -111,7 +111,7 @@ module ObjectStorage
method: 'DELETE',
bucket_name: bucket_name,
object_name: object_name,
- query: { uploadId: upload_id }
+ query: { 'uploadId' => upload_id }
}, expire_at)
end