~mvo/apt/mvo

« back to all changes in this revision

Viewing changes to methods/https.cc

  • Committer: Michael Vogt
  • Date: 2011-11-10 15:32:52 UTC
  • mfrom: (1561.70.60 debian-experimental2)
  • Revision ID: michael.vogt@ubuntu.com-20111110153252-1u9lc3lm2cgb6b1m
merged from http://bzr.debian.org/bzr/apt/apt/debian-experimental2

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
   ##################################################################### */
11
11
                                                                        /*}}}*/
12
12
// Include Files                                                        /*{{{*/
 
13
#include <config.h>
 
14
 
13
15
#include <apt-pkg/fileutl.h>
14
16
#include <apt-pkg/acquire-method.h>
15
17
#include <apt-pkg/error.h>
16
18
#include <apt-pkg/hashes.h>
17
19
#include <apt-pkg/netrc.h>
 
20
#include <apt-pkg/configuration.h>
18
21
 
19
22
#include <sys/stat.h>
20
23
#include <sys/time.h>
25
28
#include <errno.h>
26
29
#include <string.h>
27
30
#include <iostream>
28
 
#include <apti18n.h>
29
31
#include <sstream>
30
32
 
31
33
#include "config.h"
32
34
#include "https.h"
33
 
 
 
35
#include <apti18n.h>
34
36
                                                                        /*}}}*/
35
37
using namespace std;
36
38
 
51
53
{
52
54
   HttpsMethod *me = (HttpsMethod *)clientp;
53
55
   if(dltotal > 0 && me->Res.Size == 0) {
54
 
      me->Res.Size = (unsigned long)dltotal;
 
56
      me->Res.Size = (unsigned long long)dltotal;
55
57
      me->URIStart(me->Res);
56
58
   }
57
59
   return 0;