Skip to content
Snippets Groups Projects
Unverified Commit 3c02969a authored by Ayub's avatar Ayub Committed by GitHub
Browse files

Merge pull request #21785 from edx/BOM-687

BOM-687
parents 6f1c05e2 2b3538a6
No related merge requests found
......@@ -179,7 +179,7 @@ def generate_signed_message(method, headers_dict, body_dict, access_key, secret_
signature = binascii.b2a_base64(hashed.digest()).rstrip(b'\n')
authorization_header = u"SSI {}:{}".format(access_key, signature)
message += b'\n'
message += '\n'
return message, signature, authorization_header
......@@ -191,7 +191,7 @@ def signing_format_message(method, headers_dict, body_dict):
"""
headers_str = "{}\n\n{}".format(method, header_string(headers_dict))
body_str = body_string(body_dict)
message = six.b(headers_str) + body_str
message = headers_str + body_str
return message
......@@ -231,4 +231,4 @@ def body_string(body_dict, prefix=""):
value = "null"
body_list.append(u"{}{}:{}\n".format(prefix, key, value))
return b"".join(body_list) # Note that trailing \n's are important
return "".join(body_list) # Note that trailing \n's are important
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment