]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
improve https method queue progress reporting
[apt.git] / methods / http.cc
index c00b439b723a1705d7ba82ca14038e72412623c4..021b284d0fc09c666104e4e1878589a16d0d1a28 100644 (file)
@@ -444,6 +444,8 @@ bool HttpServerState::RunData(FileFd * const File)
          loss of the connection means we are done */
       if (Encoding == Closes)
         In.Limit(-1);
+      else if (JunkSize != 0)
+        In.Limit(JunkSize);
       else
         In.Limit(Size - StartPos);