~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2007-04-28 15:04:17 UTC
  • mfrom: (2466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070428150417-trp3pi0pzd411pu4
[merge] bzr.dev 2466

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
            self._query, self._fragment) = urlparse.urlparse(self.base)
144
144
        self._qualified_proto = apparent_proto
145
145
        # range hint is handled dynamically throughout the life
146
 
        # of the object. We start by trying multi-range requests
147
 
        # and if the server returns bougs results, we retry with
148
 
        # single range requests and, finally, we forget about
149
 
        # range if the server really can't understand. Once
150
 
        # aquired, this piece of info is propogated to clones.
 
146
        # of the transport object. We start by trying multi-range
 
147
        # requests and if the server returns bogus results, we
 
148
        # retry with single range requests and, finally, we
 
149
        # forget about range if the server really can't
 
150
        # understand. Once acquired, this piece of info is
 
151
        # propagated to clones.
151
152
        if from_transport is not None:
152
153
            self._range_hint = from_transport._range_hint
153
154
        else:
508
509
class SmartClientHTTPMediumRequest(medium.SmartClientMediumRequest):
509
510
    """A SmartClientMediumRequest that works with an HTTP medium."""
510
511
 
511
 
    def __init__(self, smart_medium):
512
 
        medium.SmartClientMediumRequest.__init__(self, smart_medium)
 
512
    def __init__(self, client_medium):
 
513
        medium.SmartClientMediumRequest.__init__(self, client_medium)
513
514
        self._buffer = ''
514
515
 
515
516
    def _accept_bytes(self, bytes):