New image

This commit is contained in:
Luis Fernando Molina committed 2019-02-23 10:15:42 +01:00
1 parent 51f8b4c8d9
commit 70addda281
2 files changed
+5

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

+5
View File
@@ -1170,6 +1170,11 @@ function respondWithFile(fileName, response) {
let fs = require('fs');
try {
if (fileName.indexOf("undefined") > 0 ) {
console.log("[WRN] server -> respondWithFile -> Received request for undefined file. ");
return;
}
fs.readFile(fileName, onFileRead);
function onFileRead(err, file) {