~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Mark Hammond
  • Date: 2008-12-28 05:21:23 UTC
  • mfrom: (3920 +trunk)
  • mto: (3932.1.1 prepare-1.11)
  • mto: This revision was merged to the branch mainline in revision 3937.
  • Revision ID: mhammond@skippinet.com.au-20081228052123-f78xs5sbdkotshwf
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
    """
106
106
 
107
107
    def __init__(self, base, _from_transport=None):
108
 
        super(PyCurlTransport, self).__init__(base,
 
108
        super(PyCurlTransport, self).__init__(base, 'pycurl',
109
109
                                              _from_transport=_from_transport)
110
 
        if base.startswith('https'):
 
110
        if self._unqualified_scheme == 'https':
111
111
            # Check availability of https into pycurl supported
112
112
            # protocols
113
113
            supported = pycurl.version_info()[8]
366
366
            redirected_to = msg.getheader('location')
367
367
            raise errors.RedirectRequested(url,
368
368
                                           redirected_to,
369
 
                                           is_permanent=(code == 301),
370
 
                                           qual_proto=self._scheme)
 
369
                                           is_permanent=(code == 301))
371
370
 
372
371
 
373
372
def get_test_permutations():