/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/_pycurl.py

  • Committer: Martin Pool
  • Date: 2006-03-06 11:20:10 UTC
  • mfrom: (1593 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060306112010-17c0170dde5d1eea
[merge] large merge to sync with bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from StringIO import StringIO
22
22
 
 
23
import bzrlib
23
24
from bzrlib.trace import mutter
24
25
from bzrlib.errors import (TransportNotPossible, NoSuchFile,
25
26
                           TransportError, ConnectionError,
102
103
        headers = ['Cache-control: must-revalidate',
103
104
                   'Pragma:']
104
105
        ## curl.setopt(pycurl.VERBOSE, 1)
 
106
        # TODO: maybe show a summary of the pycurl version
 
107
        ua_str = 'bzr/%s (pycurl)' % (bzrlib.__version__) 
 
108
        curl.setopt(pycurl.USERAGENT, ua_str)
105
109
        curl.setopt(pycurl.HTTPHEADER, headers)
106
110
        curl.setopt(pycurl.FOLLOWLOCATION, 1) # follow redirect responses
107
111