]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
Merge remote-tracking branch 'upstream/debian/jessie' into debian/sid
[apt.git] / methods / http.cc
index 1b996db9816bab01f688a645a0f855b90a0c138f..ad90c98912f32de585a263c00e8b7a18b854bf7f 100644 (file)
@@ -443,7 +443,7 @@ bool HttpServerState::RunData(FileFd * const File)
       else if (JunkSize != 0)
         In.Limit(JunkSize);
       else
-        In.Limit(Size - StartPos);
+        In.Limit(DownloadSize);
       
       // Just transfer the whole block.
       do