Skip to content

Commit ea47024

Browse files
author
Your Name
committed
Updated for deprecated express methods send and sendfile
1 parent 46c3556 commit ea47024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ function runPHP(req, response, next, phpdir){
112112
}
113113
//console.log("STATUS: "+response.statusCode);
114114
//console.log(html);
115-
response.send(html, response.statusCode);
115+
response.status(response.statusCode).send(html);
116116
response.end();
117117
});
118118

119119
} else {
120-
response.sendfile(file);
120+
response.sendFile(file);
121121
//response.end();
122122
//next();
123123
}

0 commit comments

Comments
 (0)