Commit b982462f authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Send application/octet-stream Content-Type on create_object

parent bfeb2d9c
......@@ -107,8 +107,10 @@ class PithosClient(StorageClient):
path = '/%s/%s/%s' % (self.account, self.container, object)
params = dict(format='json', hashmap='')
hashmap = dict(bytes=size, hashes=hashes)
r = self.put(path, params=params, json=hashmap, success=(201, 409))
headers = {'Content-Type': 'application/octet-stream'}
r = self.put(path, params=params, headers=headers, json=hashmap,
success=(201, 409))
if r.status_code == 201:
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment