aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index fbd1045..efb2989 100644
--- a/app.js
+++ b/app.js
@@ -31,7 +31,7 @@ app.get('/data', function(req, res) {
});
app.get('/img/*', function (req, res) {
- var img = fs.readFileSync(path + req.url.replace('/img', ''));
+ var img = fs.readFileSync(req.url.replace('/img', path));
res.writeHead(200, {'Content-Type': 'image/gif' });
res.end(img, 'binary');
});