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

  • Committer: Jelmer Vernooij
  • Date: 2018-06-20 21:37:51 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 7010.
  • Revision ID: jelmer@jelmer.uk-20180620213751-h41rae89r47ubfuk
Fix more http tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        self.send_header('Connection', 'close')
126
126
        self.end_headers()
127
127
        if self.command != 'HEAD' and code >= 200 and code not in (204, 304):
128
 
            self.wfile.write(content)
 
128
            self.wfile.write(content.encode('utf-8'))
129
129
 
130
130
    def _handle_one_request(self):
131
131
        http_server.SimpleHTTPRequestHandler.handle_one_request(self)
339
339
        # abandon query parameters
340
340
        path = urlparse(path)[2]
341
341
        path = posixpath.normpath(urlutils.unquote(path))
342
 
        path = path.decode('utf-8')
343
342
        words = path.split('/')
344
343
        path = self._cwd
345
344
        for num, word in enumerate(w for w in words if w):