summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-26 07:46:32 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-26 07:46:32 -0700
commit1209b7de89029e86e45b6b1c4ccbf5f5d689ff6f (patch)
tree68e5163fe9b96517b52899eec0794958b9f27049 /MobileCydia.mm
parent77d4e15b55ce321bc3aff3641889f4cf5043c367 (diff)
Add back the original X-Unique-ID behavior for Add Source.v1.1.1
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
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];