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 2011/05/21 15:08:32 UTC

svn commit: r1125691 - /incubator/libcloud/trunk/libcloud/storage/drivers/s3.py

Author: tomaz
Date: Sat May 21 13:08:32 2011
New Revision: 1125691

URL: http://svn.apache.org/viewvc?rev=1125691&view=rev
Log:
Don't lowercase the amz header values in the request signature.

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

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/s3.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/s3.py?rev=1125691&r1=1125690&r2=1125691&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/s3.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/s3.py Sat May 21 13:08:32 2011
@@ -118,7 +118,7 @@ class S3Connection(ConnectionUserAndKey)
             if key.lower() in special_header_keys:
                 special_header_values[key.lower()] = value.lower().strip()
             elif key.lower().startswith('x-amz-'):
-                amz_header_values[key.lower()] = value.lower().strip()
+                amz_header_values[key.lower()] = value.strip()
 
         if not special_header_values.has_key('content-md5'):
             special_header_values['content-md5'] = ''