Author: tomaz
Date: Mon May  9 20:04:59 2011
New Revision: 1101197

URL: http://svn.apache.org/viewvc?rev=1101197&view=rev
Log:
Fix a bug in CF storage driver - update the headers instead of overwriting them.

Modified:
    incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
URL: 
http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py?rev=1101197&r1=1101196&r2=1101197&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Mon May  9 
20:04:59 2011
@@ -104,7 +104,7 @@ class CloudFilesConnection(RackspaceBase
             action = self.request_path + action
             params['format'] = 'json'
         if method in [ 'POST', 'PUT' ]:
-            headers = {'Content-Type': 'application/json; charset=UTF-8'}
+            headers.update({'Content-Type': 'application/json; charset=UTF-8'})
 
         return super(CloudFilesConnection, self).request(
             action=action,


Reply via email to