Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.js fails on res.sendfile #5

Open
anodejeff opened this issue May 18, 2014 · 1 comment
Open

server.js fails on res.sendfile #5

anodejeff opened this issue May 18, 2014 · 1 comment

Comments

@anodejeff
Copy link

Doesn't work with latest version of node.js I'm using (v0.10.28). Get an error caused by passing a non-string to path.join

Got it working by changing sever.js line 9 from:
res.sendfile('index.html');

to
res.sendfile('index.html', {root: __dirname});

@rauchg
Copy link
Owner

rauchg commented May 18, 2014

PR plz ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants