MimeType in Debug
This commit is contained in:
parent
5f653ff650
commit
5aabcb6711
|
@ -138,6 +138,7 @@ module.exports = (lib) => {
|
|||
(err, res, data) => {
|
||||
if(!err) {
|
||||
var type = res.headers['content-type'];
|
||||
lib.log('MimeType: '+type);
|
||||
var length = res.headers['content-length'];
|
||||
if(cfg.allowedMimes.hasOwnProperty(type)) {
|
||||
//if(length <= cfg.maxFileSize) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user