~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-26 16:00:35 UTC
  • mfrom: (2495.1.1 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070526160035-utugnd3he5zvo60s
Fix PyCurl single-range bug (Vincent Ladeuil, #112719)

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
            # Forget ranges, the server can't handle them
200
200
            return self._get_full(relpath)
201
201
 
202
 
        self._curl_perform(curl, header,
203
 
                           ['Range: bytes=%s'
204
 
                            % self.range_header(ranges, tail_amount)])
 
202
        self._curl_perform(curl, header, ['Range: bytes=%s' % range_header])
205
203
        data.seek(0)
206
204
 
207
205
        code = curl.getinfo(pycurl.HTTP_CODE)