Philipp Hörist pushed to branch master at gajim / gajim
Commits:
1e1ced9a by Philipp Hörist at 2019-06-28T22:16:36Z
Fix detection of httpupload max-file-size
- - - - -
1 changed file:
- gajim/common/modules/httpupload.py
Changes:
=====================================
gajim/common/modules/httpupload.py
=====================================
@@ -83,12 +83,13 @@ class HTTPUpload(BaseModule):
self._log.info('Discovered component: %s', info.jid)
for form in info.dataforms:
- form_dict = form.asDict()
- if form_dict.get('FORM_TYPE') != self.httpupload_namespace:
+ form_type = form.vars.get('FORM_TYPE')
+ if (form_type is None or
+ form_type.value != self.httpupload_namespace):
continue
- size = form_dict.get('max-file-size')
+ size = form.vars.get('max-file-size')
if size is not None:
- self.max_file_size = int(size)
+ self.max_file_size = int(size.value)
break
if self.max_file_size is None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/1e1ced9ae712705278d1a2954ece7fd7388b9b84
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/1e1ced9ae712705278d1a2954ece7fd7388b9b84
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits