mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
fixed size limit on server to include crypto overhead
This commit is contained in:
@@ -11,6 +11,7 @@ class Limiter extends Transform {
|
||||
this.length += chunk.length;
|
||||
this.push(chunk);
|
||||
if (this.length > this.limit) {
|
||||
console.error('LIMIT', this.length, this.limit);
|
||||
return callback(new Error('limit'));
|
||||
}
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user