libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1407664 - in /libcloud/trunk: CHANGES libcloud/compute/drivers/vcloud.py
Date Fri, 09 Nov 2012 21:55:28 GMT
Author: tomaz
Date: Fri Nov  9 21:55:27 2012
New Revision: 1407664

URL: http://svn.apache.org/viewvc?rev=1407664&view=rev
Log:
Fix a bug where a numeric instead of a string value was used for the
content-length header in VCloud driver. Reported by Brian DeGeeter, part of
LIBCLOUD-256.

Modified:
    libcloud/trunk/CHANGES
    libcloud/trunk/libcloud/compute/drivers/vcloud.py

Modified: libcloud/trunk/CHANGES
URL: http://svn.apache.org/viewvc/libcloud/trunk/CHANGES?rev=1407664&r1=1407663&r2=1407664&view=diff
==============================================================================
--- libcloud/trunk/CHANGES (original)
+++ libcloud/trunk/CHANGES Fri Nov  9 21:55:27 2012
@@ -55,6 +55,10 @@ Changes with Apache Libcloud in developm
    - Add a new driver for HostVirtual (http://www.vr.org) provider.
      [Dinesh Bhoopathy]
 
+   - Fix a bug where a numeric instead of a string value was used for the
+     content-length header in VCloud driver. ; LIBCLOUD-256
+     [Brian DeGeeter, Tomaz Muraus]
+
   *) Storage
 
     - Add a new local storage driver.

Modified: libcloud/trunk/libcloud/compute/drivers/vcloud.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/vcloud.py?rev=1407664&r1=1407663&r2=1407664&view=diff
==============================================================================
--- libcloud/trunk/libcloud/compute/drivers/vcloud.py (original)
+++ libcloud/trunk/libcloud/compute/drivers/vcloud.py Fri Nov  9 21:55:27 2012
@@ -325,7 +325,7 @@ class VCloudConnection(ConnectionUserAnd
         return {
             'Authorization': "Basic %s" % base64.b64encode(
                 b('%s:%s' % (self.user_id, self.key))).decode('utf-8'),
-            'Content-Length': 0,
+            'Content-Length': '0',
             'Accept': 'application/*+xml'
         }
 
@@ -775,7 +775,7 @@ class HostingComConnection(VCloudConnect
         return {
             'Authentication': base64.b64encode(b('%s:%s' % (self.user_id,
                                                             self.key))),
-            'Content-Length': 0
+            'Content-Length': '0'
         }
 
 



Mime
View raw message