Created
June 26, 2012 22:55
-
-
Save motiooon/2999909 to your computer and use it in GitHub Desktop.
request image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get('/photos/hires/:id', function(req,res){ | |
request({ | |
//encoding: null, | |
method: 'GET', | |
uri: _photo | |
}, function (error, response, body) { | |
if (!error && response.statusCode == 200) { | |
res.attachment(body); | |
} | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment