/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/tests/HttpServer.py

  • Committer: Vincent Ladeuil
  • Date: 2007-12-10 11:10:06 UTC
  • mfrom: (3059.2.18 173010)
  • mto: This revision was merged to the branch mainline in revision 3099.
  • Revision ID: v.ladeuil+lp@free.fr-20071210111006-xbxxp6cdt16hqgfk
Fix 173010 by reading data as it arrives on the http socket

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
142
142
                                                                  file_size))
143
143
            self.end_headers()
144
144
            self.send_range_content(file, start, end - start + 1)
145
 
            self.wfile.write("--%s\r\n" % boundary)
 
145
        # Final boundary
 
146
        self.wfile.write("--%s\r\n" % boundary)
146
147
 
147
148
    def do_GET(self):
148
149
        """Serve a GET request.