~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: 2006-07-13 18:26:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060713182621-10fc8ce282741455
Fix up the http transports so that tests pass with the new configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
360
360
        else:
361
361
            return self.__class__(self.abspath(offset))
362
362
 
363
 
    def _range_header(self, ranges, tail_amount):
 
363
    @staticmethod
 
364
    def range_header(ranges, tail_amount):
364
365
        """Turn a list of bytes ranges into a HTTP Range header value.
365
366
 
366
367
        :param offsets: A list of byte ranges, (start, end). An empty list
470
471
                                                RequestHandlerClass)
471
472
        self.test_case = test_case
472
473
 
 
474
 
473
475
class HttpServer(Server):
474
476
    """A test server for http transports."""
475
477