summaryrefslogtreecommitdiff
path: root/boto/auth.py
diff options
context:
space:
mode:
authorMitch Garnaat <mitch@garnaat.com>2012-09-12 04:16:25 -0700
committerMitch Garnaat <mitch@garnaat.com>2012-09-12 04:16:25 -0700
commit8d696f4c373fbacc248573e882552802d146c5e2 (patch)
tree93867bd97ba13a44a2a057557d5763bf874ada4f /boto/auth.py
parentb38a137babea578844382b70be0d38ea0c87a1f8 (diff)
downloadboto-8d696f4c373fbacc248573e882552802d146c5e2.tar.gz
Fix a URL-encoding problem for sigv4 (only on query api's).
Diffstat (limited to 'boto/auth.py')
-rw-r--r--boto/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/boto/auth.py b/boto/auth.py
index 1935eb92..47c149af 100644
--- a/boto/auth.py
+++ b/boto/auth.py
@@ -340,8 +340,8 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
l = []
for param in http_request.params:
value = str(http_request.params[param])
- l.append('%s=%s' % (urllib.quote(param, safe='/~'),
- urllib.quote(value, safe='~')))
+ l.append('%s=%s' % (urllib.quote(param, safe='-_.~'),
+ urllib.quote(value, safe='-_.~')))
l = sorted(l)
return '&'.join(l)