Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use X-Object-Manifest instead of X-Object-Meta-Manifest when creating DLO #260

Merged
merged 1 commit into from
Dec 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyrax/cf_wrapper/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def upload(fileobj, content_type, etag, headers):
etag=etag, headers=headers,
response_dict=extra_info)
# Upload the manifest
headers["X-Object-Meta-Manifest"] = "%s." % obj_name
headers["X-Object-Manifest"] = "%s." % obj_name
return self.connection.put_object(cont.name, obj_name,
contents=None, headers=headers,
response_dict=extra_info)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cf_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def test_upload_large_file_from_file_object_with_obj_name(self):
self.assertEqual(put_calls[0][1][1], '%s.1' % obj_name)
self.assertEqual(put_calls[1][1][1], '%s.2' % obj_name)
self.assertEqual(put_calls[2][1][1], obj_name)
self.assertEqual(put_calls[2][2]["headers"]["X-Object-Meta-Manifest"],
self.assertEqual(put_calls[2][2]["headers"]["X-Object-Manifest"],
obj_name + ".")

# get_object() should be called with the same name that was passed
Expand Down