mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 11:22:42 -06:00
concatenation of strings converted to f-strings
This commit is contained in:
parent
e68f6afead
commit
02561c3359
1 changed files with 4 additions and 4 deletions
|
@ -104,10 +104,10 @@ def add_auth_signature(
|
|||
headers["x-push-token"] = push_token
|
||||
|
||||
auth_sig, auth_nonce = _sign_payload(auth_key.key, bag_key, "", push_token, body)
|
||||
auth_postfix = "-" + str(auth_number) if auth_number is not None else ""
|
||||
headers["x-auth-sig" + auth_postfix] = auth_sig
|
||||
headers["x-auth-nonce" + auth_postfix] = b64encode(auth_nonce)
|
||||
headers["x-auth-cert" + auth_postfix] = dearmour(auth_key.cert)
|
||||
auth_postfix = f"-{str(auth_number)}" if auth_number is not None else ""
|
||||
headers[f"x-auth-sig{auth_postfix}"] = auth_sig
|
||||
headers[f"x-auth-nonce{auth_postfix}"] = b64encode(auth_nonce)
|
||||
headers[f"x-auth-cert{auth_postfix}"] = dearmour(auth_key.cert)
|
||||
|
||||
|
||||
def add_id_signature(
|
||||
|
|
Loading…
Reference in a new issue