]> git.saurik.com Git - apt.git/commitdiff
Update methods/https.cc now that ServerState::Size is renamed
authorMichael Vogt <mvo@ubuntu.com>
Fri, 22 May 2015 14:27:08 +0000 (16:27 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Fri, 22 May 2015 14:30:29 +0000 (16:30 +0200)
Git-Dch: ignore

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->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;
    }
    else if (me->Server->HeaderLine(line) == false)
       return 0;