diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 20:54:50 +0200 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 20:54:50 +0200 |
commit | ae987b9e7fe61999a18e4bc675916bff26c6b7ff (patch) | |
tree | 184fe914f51005e099b8587d645afe224595c233 | |
parent | images (diff) |
images
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'); }); |