fixed bad namespace
This commit is contained in:
parent
a00b1eb609
commit
8bb9cb97fc
2 changed files with 2 additions and 1 deletions
|
|
@ -453,6 +453,7 @@ class XEP_0065():
|
|||
|
||||
def sendFile(self, id, filepath, size):
|
||||
#lauching socks5 initiator
|
||||
debug("Launching socks5 initiator")
|
||||
self.server_factory.protocol.mode = "initiator"
|
||||
self.server_factory.protocol.filepath = filepath
|
||||
self.server_factory.protocol.filesize = size
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class XEP_0096:
|
|||
si=offer.addElement('si','http://jabber.org/protocol/si')
|
||||
si["mime-type"]='text/plain'
|
||||
si["profile"]='http://jabber.org/protocol/si/profile/file-transfer'
|
||||
file = si.addElement('file', 'http://jabber.org/protocol/si')
|
||||
file = si.addElement('file', 'http://jabber.org/protocol/si/profile/file-transfer')
|
||||
file['name']=os.path.basename(filepath)
|
||||
file['size']=str(statinfo.st_size)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue