Skip to content
Permalink
Browse files
corrected missing protocol in image URL
  • Loading branch information
marktyers committed May 3, 2015
1 parent 3c22909 commit 8fb78b183c8183449e292f2fa753e87c5cccae5d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -28,7 +28,7 @@ server.get('/', function(req, res) {
console.log('GET');
fs.readdir('images/', function(err, files) {
var data = files.map(function(value) {
return req['headers.x-forwarded-proto']+'://'+req.headers.host+'/images/'+value;
return req.headers['x-forwarded-proto']+'://'+req.headers.host+'/images/'+value;
});
res.send(data);
res.end();

0 comments on commit 8fb78b1

Please sign in to comment.