Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
server: use sendFile instead of sendfile
Browse files Browse the repository at this point in the history
This is an important API change. Introduced in Express 4.8.0.
  • Loading branch information
vincentbernat committed Sep 22, 2015
1 parent de73f99 commit 37e65b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function serve(file) {
matches = glob.sync(f);
if (matches.length > 0) {
return function(req, res) {
res.sendfile(matches[0]);
res.sendFile(matches[0]);
};
}
return function(req, res) {
Expand Down

0 comments on commit 37e65b9

Please sign in to comment.