Expected content length from http header should not be accumulated

This commit is contained in:
Zorg committed 2016-12-28 12:39:18 -05:00
1 parent 6d69b1215d
commit 47b1c8a9a2
1 file changed
+3 -2
+3 -2
View File
@@ -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;
}
});
}