diff options
author | Mitch Garnaat <mitch@garnaat.com> | 2013-01-10 10:32:56 -0800 |
---|---|---|
committer | Mitch Garnaat <mitch@garnaat.com> | 2013-01-10 10:32:56 -0800 |
commit | 5913c8265da64455b2656f13c1f76de3a763fd2c (patch) | |
tree | 9c3b03e355b4ba021f73bd58eb098ad92e476b2b /boto/utils.py | |
parent | dc8e0cb9bcaaf21e45cac694cdf653f2e94c3e97 (diff) | |
download | boto-5913c8265da64455b2656f13c1f76de3a763fd2c.tar.gz |
Small fix in case someone puts a non-string value in the headers dict. Fixes #1229.
Diffstat (limited to 'boto/utils.py')
-rw-r--r-- | boto/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boto/utils.py b/boto/utils.py index 94a9a259..35ec64dd 100644 --- a/boto/utils.py +++ b/boto/utils.py @@ -115,7 +115,7 @@ def canonical_string(method, path, headers, expires=None, lk = key.lower() if headers[key] != None and (lk in ['content-md5', 'content-type', 'date'] or lk.startswith(provider.header_prefix)): - interesting_headers[lk] = headers[key].strip() + interesting_headers[lk] = str(headers[key]).strip() # these keys get empty strings if they don't exist if 'content-type' not in interesting_headers: |