Skip to content

Commit

Permalink
add accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNikiforov authored Jun 28, 2024
1 parent a53f6ac commit 6c755ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/icloudpd/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def request_2fa(icloud: PyiCloudService, logger: logging.Logger) -> None:
code = click.prompt(
"Please enter two-factor authentication code",
type=click.IntRange(
0,
100000,
999999))
if not icloud.validate_2fa_code(str(code)):
logger.error("Failed to verify two-factor authentication code")
Expand Down
2 changes: 1 addition & 1 deletion src/pyicloud_ipd/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def build_verify_sms_code_request(context: _TrustedPhoneContextProvider, device_
**_oauth_redirect_header(context.domain),
**_oauth_headers(context.oauth_session),
** {"Content-type": "application/json"},
# ** {"Accept": "application/json"},
** {"Accept": "application/json"},
},
json = json)
return req

0 comments on commit 6c755ac

Please sign in to comment.