Skip to content

Commit

Permalink
Fix signature mismatch in putobject in python3 (Fixes #435) (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
donatello authored and harshavardhana committed Dec 9, 2016
1 parent 78be131 commit 9b96bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions minio/signer.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ def sign_v4(method, url, region, headers=None, access_key=None,
if content_sha256 is None:
# with no payload, calculate sha256 for 0 length data.
content_sha256 = encode_to_hex(get_sha256(b'')).decode('ascii')
elif isinstance(content_sha256, bytes):
content_sha256 = content_sha256.decode('ascii')

host = parsed_url.netloc
headers['Host'] = host
Expand Down

0 comments on commit 9b96bf1

Please sign in to comment.