diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-26 07:46:32 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-26 07:46:32 -0700 |
commit | 1209b7de89029e86e45b6b1c4ccbf5f5d689ff6f (patch) | |
tree | 68e5163fe9b96517b52899eec0794958b9f27049 /MobileCydia.mm | |
parent | 77d4e15b55ce321bc3aff3641889f4cf5043c367 (diff) |
Add back the original X-Unique-ID behavior for Add Source.v1.1.1
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index d919a7f..f11037f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8801,11 +8801,12 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi if (Machine_ != NULL) [request setValue:[NSString stringWithUTF8String:Machine_] forHTTPHeaderField:@"X-Machine"]; + if (UniqueID_ != nil) + [request setValue:UniqueID_ forHTTPHeaderField:@"X-Unique-ID"]; + if ([url isCydiaSecure]) { - if (UniqueID_ != nil) { - [request setValue:UniqueID_ forHTTPHeaderField:@"X-Unique-ID"]; + if (UniqueID_ != nil) [request setValue:UniqueID_ forHTTPHeaderField:@"X-Cydia-Id"]; - } } return [[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease]; |