Revision 53cff70c pithos/lib/client.py

b/pithos/lib/client.py
448 448
        account = account or self.account
449 449
        path = '/%s/%s/%s' % (account, dst_container, dst_object)
450 450
        headers = {} if not headers else headers
451
        params = {}
451 452
        for k, v in meta.items():
452 453
            headers['x-object-meta-%s' % k] = v
453 454
        if remove:
......
456 457
            headers['x-copy-from'] = '/%s/%s' % (src_container, src_object)
457 458
        headers['content_length'] = 0
458 459
        if content_type:
459
            headers['content_type'] = content_type 
460
        return self.put(path, headers=headers)
460
            headers['content_type'] = content_type
461
        else:
462
            params['ignore_content_type'] = ''
463
        return self.put(path, headers=headers, params=params)
461 464
    
462 465
    def copy_object(self, src_container, src_object, dst_container, dst_object,
463 466
                   meta={}, account=None, content_type=None, **headers):

Also available in: Unified diff