old_contents: 'use strict';
  
  var $http = require('request'),
      $q = require('q');
  
  module.exports = function (req, res) {
      if (req.query && req.query.url) {
  
          $http.get({
                  url: req.query.url,
                  headers: {
                      'User-Agent': 'googlebot'
                  }
              },
              function (err, response, html) {
                  if (!err && +response.statusCode === +200) {
  
                      res.json({
                          html: html
                      });
  
                  } else {
                      res.status(404).send('error status');
                  }
              }).on('error', function (err) {
                  res.status(404).send('error request');
              });
      } else {
          res.status(404).send('no url');
      }
  };
new_contents: 'use strict';
  
  var $http = require('request'),
      $q = require('q');
  
  module.exports = function (req, res) {
      if (req.query && req.query.url) {
  
          $http.get({
                  url: req.query.url,
                  headers: {
                      'User-Agent': 'googlebot'
                  }
              },
              function (err, response, html) {
                  if (!err && +response.statusCode === +200) {
  
                      res.json({
                          html: html
                      });
  
                  } else {
                      res.status(404).json({
                          err: err,
                          response: response,
                          html: html
                      });
                  }
              }).on('error', function (err) {
                  res.status(404).send('error request');
              });
      } else {
          res.status(404).send('error url');
      }
  };
subject: fix decoding