Skip to content

Commit

Permalink
Merge 95d3daf into 2340c80
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian D. Burns committed Jul 19, 2013
2 parents 2340c80 + 95d3daf commit 3f7c316
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/fog/aws/parsers/storage/complete_multipart_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def reset

def end_element(name)
case name
when 'Bucket', 'ETag', 'Key', 'Location'
when 'Bucket', 'ETag', 'Key', 'Location', 'Code', 'Message'
@response[name] = value
end
end
Expand Down
8 changes: 6 additions & 2 deletions lib/fog/aws/requests/storage/complete_multipart_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ class Real
# @param [Array<String>] parts Array of etags as Strings for parts
#
# @return [Excon::Response]
# * headers [Hash]:
# * body [Hash]: (success)
# * Bucket [String] - bucket of new object
# * ETag [String] - etag of new object (will be needed to complete upload)
# * ETag [String] - etag of new object
# * Key [String] - key of new object
# * Location [String] - location of new object
# * body [Hash]: (failure)
# * Code [String] - Error status code
# * Message [String] - Error description
#
# @note This request could fail and still return +200 OK+, so it's important that you check the response.
# @see http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html
#
def complete_multipart_upload(bucket_name, object_name, upload_id, parts)
Expand Down

0 comments on commit 3f7c316

Please sign in to comment.