How to read and display remote pictures in node?

  node.js, question

Using the express framework, readhttps://pin.aliyun.com/get_img? sessionid=1The content of this picture, withhttp://localhost/identifyShow the picture, code is as follows, after running the picture display frame, did not show the picture:

router.get('/identify',function(req,res,next){
 var opts={
 url:'https://pin.aliyun.com/get_img?  sessionid=1'
 bracket
 request.get(opts, function (err, response, body) {
 var type = response.headers["content-type"];
 res.writeHead(200,{"Content-Type":type});
 res.write(body);
 res.end();
 })
 })

Add more logs to print and debug it.