]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
dispose http(s) 416 error page as non-content
[apt.git] / methods / http.cc
index a5de13511bf3ced8f7920474ab2fd5f45393602e..ad1347d36fc5544d7db2e0b1318ee5642805c1e0 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);