equal
deleted
inserted
replaced
337 else: |
337 else: |
338 req.headers.append((r'Connection', r'Close')) |
338 req.headers.append((r'Connection', r'Close')) |
339 |
339 |
340 # TODO This response body assumes the failed command was |
340 # TODO This response body assumes the failed command was |
341 # "unbundle." That assumption is not always valid. |
341 # "unbundle." That assumption is not always valid. |
342 req.respond(e, HGTYPE, body='0\n%s\n' % e) |
342 req.respond(e, HGTYPE, body='0\n%s\n' % pycompat.bytestr(e)) |
343 |
343 |
344 return '' |
344 return '' |
345 |
345 |
346 def _sshv1respondbytes(fout, value): |
346 def _sshv1respondbytes(fout, value): |
347 """Send a bytes response for protocol version 1.""" |
347 """Send a bytes response for protocol version 1.""" |