diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index 769358c9..21299159 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -163,8 +163,9 @@ - (BOOL)download:(NSURLDownload *)download shouldDecodeSourceDataOfMIMEType:(NSString *)encodingType { - if ([encodingType isEqualToString:@"application/gzip"]) return NO; - return YES; + // We don't want the download system to extract our gzips. + // Note that we use a substring matching here instead of direct comparison because the docs say "application/gzip" but the system *uses* "application/x-gzip". This is a documentation bug. + return ([encodingType rangeOfString:@"gzip"].origin == NSNotFound); } - (void)extractUpdate