diff --git a/lib/handlers_v4.js b/lib/handlers_v4.js index fde452e..c9d1294 100755 --- a/lib/handlers_v4.js +++ b/lib/handlers_v4.js @@ -165,6 +165,10 @@ function execute_request(request) { } ); + if (!result.mime) { + return; + } + if (this.hideUndefined && result.mime["text/plain"] === "undefined") { return; diff --git a/lib/handlers_v5.js b/lib/handlers_v5.js index a76661d..49dc486 100755 --- a/lib/handlers_v5.js +++ b/lib/handlers_v5.js @@ -185,6 +185,10 @@ function execute_request(request) { } ); + if (!result.mime) { + return; + } + if (this.hideUndefined && result.mime["text/plain"] === "undefined") { return;