#!/usr/bin/env node
var http = require('http')
var request = require('request')

var port = process.env.PORT || 8080

http.createServer(function (req, res) {
  res.setTimeout(2500)
  res.setHeader('Access-Control-Allow-Origin', '*')
  try {
    request(req.url.slice(1), {encoding: null}, function(error, response, body) {
      res.write(body)
      res.end()
    })
  }
  catch(e) {}
}).listen(port)

console.log("Listening on port: " + port)

@@ -172,16 +172,17 @@
 out(2500
+0
 )%0A  res.

Increase timeout