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) }