summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MobileCydia.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index d8f39d7..5d90282 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4569,11 +4569,11 @@ static _H<NSMutableSet> Diversions_;
}
- (NSURLRequest *) webView:(WebView *)view resource:(id)resource willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response fromDataSource:(WebDataSource *)source {
- NSURL *url([request URL]);
- NSString *host([url host]);
-
NSMutableURLRequest *copy([[super webView:view resource:resource willSendRequest:request redirectResponse:response fromDataSource:source] mutableCopy]);
+ NSURL *url([copy URL]);
+ NSString *host([url host]);
+
if ([copy valueForHTTPHeaderField:@"X-Cydia-Cf-Version"] == nil)
[copy setValue:[NSString stringWithFormat:@"%.2f", kCFCoreFoundationVersionNumber] forHTTPHeaderField:@"X-Cydia-Cf-Version"];
if (Machine_ != NULL && [copy valueForHTTPHeaderField:@"X-Machine"] == nil)