Permalink
Browse files

* S3/S3.py: "Stringify" all headers. Httplib should do

  it but some Python 2.7 users reported problems that should
  now be fixed.



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@438 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information...
1 parent 9daf7c6 commit f8c06b8de2ddd2532a995bc75018100bcaf2d66a ludvigm committed Oct 24, 2010
Showing with 9 additions and 0 deletions.
  1. +6 −0 ChangeLog
  2. +3 −0 S3/S3.py
View
@@ -1,3 +1,9 @@
+2010-10-24 Michal Ludvig <mludvig@logix.net.nz>
+
+ * S3/S3.py: "Stringify" all headers. Httplib should do
+ it but some Python 2.7 users reported problems that should
+ now be fixed.
+
2010-07-25 Aaron Maxwell <amax@resymbol.net>
* S3/Config.py, testsuite/etc/brokenlink.png, testsuite/etc/more/linked-dir, testsuite/etc/more/give-me-more.txt, testsuite/etc/linked.png, testsuite/etc/linked1.png, run-tests.py, s3cmd.1, s3cmd:
View
@@ -466,6 +466,9 @@ def send_request(self, request, body = None, retries = _max_retries):
if not headers.has_key('content-length'):
headers['content-length'] = body and len(body) or 0
try:
+ # "Stringify" all headers
+ for header in headers.keys():
+ headers[header] = str(headers[header]))
conn = self.get_connection(resource['bucket'])
conn.request(method_string, self.format_uri(resource), body, headers)
response = {}

0 comments on commit f8c06b8

Please sign in to comment.