mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Expected content length from http header should not be accumulated
This commit is contained in:
1 parent
6d69b1215d
commit
47b1c8a9a2
1 file changed
+3
-2
Vendored
+3
-2
@@ -193,9 +193,10 @@
|
||||
self.retrievedDownloadResponse = YES;
|
||||
}
|
||||
|
||||
// Accumulate expected content length from downloader so we can later verify if the total length matches with the content length from the appcast
|
||||
// Reset expected content length from downloader
|
||||
// Later we verify if the total length matches with the content length from the appcast
|
||||
if (expectedContentLength > 0 && expectedContentLength != NSURLResponseUnknownLength) {
|
||||
self.expectedContentLength += (NSUInteger)expectedContentLength;
|
||||
self.expectedContentLength = (NSUInteger)expectedContentLength;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user