New image
This commit is contained in:
1 parent
51f8b4c8d9
commit
70addda281
2 files changed
+5
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user