xep_0363: Ensure every form in disco#info is read

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-05-12 01:03:50 +02:00
parent d6f7d32bbe
commit 4aa35c11ab
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -116,7 +116,7 @@ class XEP_0363(BasePlugin):
except (TypeError, ValueError): except (TypeError, ValueError):
log.error('Invalid max size received from HTTP File Upload service') log.error('Invalid max size received from HTTP File Upload service')
self.max_file_size = float('+inf') self.max_file_size = float('+inf')
break break
if input_file is None: if input_file is None:
input_file = open(filename, 'rb') input_file = open(filename, 'rb')