]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
improve https method queue progress reporting
[apt.git] / methods / http.cc
index a5de13511bf3ced8f7920474ab2fd5f45393602e..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);
       
@@ -770,8 +772,6 @@ bool HttpMethod::Configuration(string Message)
    if (ServerMethod::Configuration(Message) == false)
       return false;
 
-   DropPrivsOrDie();
-
    AllowRedirect = _config->FindB("Acquire::http::AllowRedirect",true);
    PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",
                                  PipelineDepth);