Fix http upload for servers without file size limit (#1512)
* Fix for ejabberd XMPP server 'infinity' http upload file size announce - fixes https://github.com/dino/dino/issues/1222 * Update 0363_http_file_upload.vala
This commit is contained in:
parent
cb78cec9e2
commit
85ea7e5008
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue