title: NodeJS res.on end is not triggered
body: <p>I'm having a problem in end the responded data to the client. The response is not sent to the client, res.on('end') is not triggered. I don't have any idea to make this things work out. My goal is to send the retrieved data in redis to the client. Is there any way to make this work?. By the way, here is my code guys. Thanks</p>
  
  <pre><code>app.get('/contacts/list', function(req, res) {
  
      var someId = null;
      var someData;
  
      var optionsA = {
          hostname: host,
          path: checkHeaders,
          headers: {
              'Content-Type': 'application/json',
              'someheaders1': req.headers.someheaders1,
              'someheaders2': req.headers.someheaders2,
              'someheaders3': req.headers.someheaders3,
              'someheaders4': req.headers.someheaders4,
              'user-agent': req.headers['user-agent'],
              'local': req.header('x-forwarded-for') || req.connection.remoteAddress
          }
      };
  
      var req = https.get(optionsA, function(res) {
          res.on('data', function(chunk) {
              if (res.statusCode === 200) {
                  userId = chunk;
                  redisc.smembers('setId:' + someId, function(err, data) {
                      if (!err) {
                          someData = data;
                      } else {
                          console.log(err);
                      }
                  });
              } else {
                  console.log('404');
              }
          });
  
          res.on('end', function() {
              res.send(someData);
              console.log('end');
          });
      });
  
      req.on('error', function(e) {
          console.log('ERROR: ' + e.message);
      });
  
      res.end();
  });
  </code></pre>
  
  <p>Thanks in advance. Guys.</p>