Skip to content

Commit f9e08ee

Browse files
committedSep 24, 2021
Fix missing variable
1 parent 60a2447 commit f9e08ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎proton/api.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,18 @@ def authenticate(self, username, password, human_verification=None):
367367
if self.__clientsecret:
368368
payload['ClientSecret'] = self.__clientsecret
369369

370+
additional_headers = {}
371+
370372
if human_verification:
371373
human_verification_header = {
372374
"X-PM-Human-Verification-Token-Type": human_verification[0],
373375
"X-PM-Human-Verification-Token": human_verification[1]
374376
}
377+
additional_headers.update(human_verification_header)
378+
375379
info_response = self.api_request(
376380
"/auth/info", payload,
377-
additional_headers=human_verification_header
381+
additional_headers=additional_headers
378382
)
379383

380384
modulus = self.verify_modulus(info_response['Modulus'])

0 commit comments

Comments
 (0)
Please sign in to comment.