[ 
https://issues.apache.org/jira/browse/LIBCLOUD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494180#comment-13494180
 ] 

Brian DeGeeter commented on LIBCLOUD-256:
-----------------------------------------

+++ b/libcloud/compute/drivers/vcloud.py
@@ -325,7 +325,7 @@ class VCloudConnection(ConnectionUserAndKey):
         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'
         }

                
> Content-length header causes httplib exception in VCloudConnection
> ------------------------------------------------------------------
>
>                 Key: LIBCLOUD-256
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-256
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.11.2
>         Environment: Centos 5.8, python 2.7, 
>            Reporter: Brian DeGeeter
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> _get_auth_headers in VCloudConnnection raises and exception due to an integer 
> 0 set as the Content-Length.  The issues is resolved by setting the 
> Content-Length to a string '0'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to