include an empty language field on sftp responses, since some clients
expect it.
This commit is contained in:
Robey Pointer 2008-05-18 16:12:21 -07:00
parent d21d384509
commit e47e203540
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,8 @@ class SFTPServer (BaseSFTP, SubsystemHandler):
desc = SFTP_DESC[code] desc = SFTP_DESC[code]
except IndexError: except IndexError:
desc = 'Unknown' 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): def _open_folder(self, request_number, path):
resp = self.server.list_folder(path) resp = self.server.list_folder(path)