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