You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2012/11/09 22:55:28 UTC

svn commit: r1407664 - in /libcloud/trunk: CHANGES libcloud/compute/drivers/vcloud.py

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'
         }