<commit_before>var request = require('request');

exports.shorten_url = function (req, res) {
  var url = req.body.destination;
  request.post({
    url: 'http://api.wrapulous.com/api/v0/links/',
    json: {destination: url}
  }, function (error, response, body) {

    console.log(response);

    res.send(
      response.statusCode,
      {
        body: body,
        apiKey: response.headers['X-Api-Key']
      }
    );
  });
};<commit_msg>wtf node you lowercase my headers?<commit_after>var request = require('request');

exports.shorten_url = function (req, res) {
  var url = req.body.destination;
  request.post({
    url: 'http://api.wrapulous.com/api/v0/links/',
    json: {destination: url}
  }, function (error, response, body) {

    console.log(response);

    res.send(
      response.statusCode,
      {
        body: body,
        apiKey: response.headers['x-api-key']
      }
    );
  });
};
{'fraction_non_alphanumeric': 0.1617161716171617, 'fraction_numerical': 0.0022002200220022, 'mean_word_length': 2.6991869918699187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4780759', 'n_tokens_mistral': 307, 'n_tokens_neox': 302, 'n_words': 59}