From e47e2035403e4dc92609d4a8aae8f4f41874a9fb Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sun, 18 May 2008 16:12:21 -0700 Subject: [PATCH] [project @ robey@lag.net-20080518231221-znq4h93fzdgotwf1] include an empty language field on sftp responses, since some clients expect it. --- paramiko/sftp_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paramiko/sftp_server.py b/paramiko/sftp_server.py index df7df62..995fc31 100644 --- a/paramiko/sftp_server.py +++ b/paramiko/sftp_server.py @@ -204,7 +204,8 @@ class SFTPServer (BaseSFTP, SubsystemHandler): desc = SFTP_DESC[code] except IndexError: desc = 'Unknown' - self._response(request_number, CMD_STATUS, code, desc) + # some clients expect a "langauge" tag at the end (but don't mind it being blank) + self._response(request_number, CMD_STATUS, code, desc, '') def _open_folder(self, request_number, path): resp = self.server.list_folder(path)