From f1790cec3dd0f0fba6423d1f38b517a77151fd3f Mon Sep 17 00:00:00 2001 From: nab138 Date: Mon, 26 Jan 2026 21:42:52 -0500 Subject: [PATCH] Fix SMS 2FA --- isideload/src/auth/apple_account.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/isideload/src/auth/apple_account.rs b/isideload/src/auth/apple_account.rs index 8a75afe..8326158 100644 --- a/isideload/src/auth/apple_account.rs +++ b/isideload/src/auth/apple_account.rs @@ -280,10 +280,6 @@ impl AppleAccount { .grandslam_client .get(&submit_code_url)? .headers(self.build_2fa_headers().await?) - .header( - "X-Apple-I-MD-RINFO", - self.anisette_data.routing_info.clone(), - ) .header("security-code", code) .send() .await @@ -414,6 +410,10 @@ impl AppleAccount { "X-Apple-Identity-Token", reqwest::header::HeaderValue::from_str(&identity)?, ); + headers.insert( + "X-Apple-I-MD-RINFO", + reqwest::header::HeaderValue::from_str(&self.anisette_data.routing_info)?, + ); Ok(headers) }