aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r--xmpp-vala/src/module/xep/0363_http_file_upload.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0363_http_file_upload.vala b/xmpp-vala/src/module/xep/0363_http_file_upload.vala
index 996128e2..c7b8fb59 100644
--- a/xmpp-vala/src/module/xep/0363_http_file_upload.vala
+++ b/xmpp-vala/src/module/xep/0363_http_file_upload.vala
@@ -181,7 +181,9 @@ public class Module : XmppStreamModule {
}
}
if (max_file_size_str != null) return long.parse(max_file_size_str);
- return -1;
+
+ // If there is no max-file-size node, there is no file size limit
+ return long.MAX;
}
}