diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-05-22 18:08:19 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-05-22 18:08:19 +0200 |
commit | c2e39004370846f465cf60b6fb312664981179d8 (patch) | |
tree | f9bfabdf95f3768a9b829327d08c58ffa14e36a9 /methods/https.cc | |
parent | accd8215ca9a1cb10e92a059d71eb02aac2f0743 (diff) | |
parent | ba95c69681dee8a0ae12ba635e56414820ee9113 (diff) |
Merge branch 'debian/sid' into ubuntu/master
Conflicts:
debian/changelog
Diffstat (limited to 'methods/https.cc')
-rw-r--r-- | methods/https.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/methods/https.cc b/methods/https.cc index cb11159bc..c97367323 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -55,10 +55,10 @@ HttpsMethod::parse_header(void *buffer, size_t size, size_t nmemb, void *userp) { if (me->Server->Result != 416 && me->Server->StartPos != 0) ; - else if (me->Server->Result == 416 && me->Server->Size == me->File->FileSize()) + else if (me->Server->Result == 416 && me->Server->TotalFileSize == me->File->FileSize()) { me->Server->Result = 200; - me->Server->StartPos = me->Server->Size; + me->Server->StartPos = me->Server->TotalFileSize; // the actual size is not important for https as curl will deal with it // by itself and e.g. doesn't bother us with transport-encoding… me->Server->JunkSize = std::numeric_limits<unsigned long long>::max(); @@ -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; |