You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/07/19 17:49:53 UTC

svn commit: r965538 - /incubator/libcloud/trunk/libcloud/base.py

Author: jed
Date: Mon Jul 19 15:49:53 2010
New Revision: 965538

URL: http://svn.apache.org/viewvc?rev=965538&view=rev
Log:
Fix crash in putheader due to integer header value (LIBCLOUD-43)

Modified:
    incubator/libcloud/trunk/libcloud/base.py

Modified: incubator/libcloud/trunk/libcloud/base.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/base.py?rev=965538&r1=965537&r2=965538&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/base.py (original)
+++ incubator/libcloud/trunk/libcloud/base.py Mon Jul 19 15:49:53 2010
@@ -421,7 +421,7 @@ class ConnectionKey(object):
         # Encode data if necessary
         if data != '':
             data = self.encode_data(data)
-        headers.update({'Content-Length': len(data)})
+        headers.update({'Content-Length': str(len(data))})
         url = '?'.join((action, urllib.urlencode(params)))
 
         # Removed terrible hack...this a less-bad hack that doesn't execute a