]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
Update methods/https.cc now that ServerState::Size is renamed
[apt.git] / methods / https.cc
index 81060122cd2d486171e4700b27bd9f47b9304e51..c973673239fc21009d6ec5207ca2c2f03ba930a3 100644 (file)
@@ -69,7 +69,7 @@ HttpsMethod::parse_header(void *buffer, size_t size, size_t nmemb, void *userp)
       me->File->Truncate(me->Server->StartPos);
       me->File->Seek(me->Server->StartPos);
 
-      me->Res.Size = me->Server->Size;
+      me->Res.Size = me->Server->TotalFileSize;
    }
    else if (me->Server->HeaderLine(line) == false)
       return 0;