]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
demote VectorizeString gcc attribute from const to pure
[apt.git] / methods / http.cc
index f2a4a4db631add976bcbf36d329a57d45d3304a5..1b996db9816bab01f688a645a0f855b90a0c138f 100644 (file)
@@ -440,6 +440,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);