From a497d6539589d21fa69860898c0f9abe1d81ca57 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 1 Sep 2016 06:41:07 +0000 Subject: [PATCH] bugfix --- src/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.js b/src/lib.js index c6b5cf6..ac959c9 100644 --- a/src/lib.js +++ b/src/lib.js @@ -149,7 +149,7 @@ Lib.prototype.dl = (url, dest, cb) => { }); } else - cb({'status':false, 'msg':'f0ck! your file is too big (~'+formatSize(response.headers['content-length'])+'), max '+formatSize(cfg.maxFileSize)+' allowed', 'type':1}); + cb({'status':false, 'msg':'f0ck! your file is too big (~'+Lib.prototype.formatSize(response.headers['content-length'])+'), max '+Lib.prototype.formatSize(cfg.maxFileSize)+' allowed', 'type':1}); } else cb({'status':false, 'msg':'f0ck you', 'type':2});