Revision 466c1ef7

b/kamaki/clients/pithos.py
107 107
        path = '/%s/%s/%s' % (self.account, self.container, object)
108 108
        params = dict(format='json', hashmap='')
109 109
        hashmap = dict(bytes=size, hashes=hashes)
110
        r = self.put(path, params=params, json=hashmap, success=(201, 409))
111
        
110
        headers = {'Content-Type': 'application/octet-stream'}
111
        r = self.put(path, params=params, headers=headers, json=hashmap,
112
                     success=(201, 409))
113

  
112 114
        if r.status_code == 201:
113 115
            return
114 116
        

Also available in: Unified diff