   else
     url = Url.parse req.url
 
+    transferred_headers =
+      'Via'                    : 'GitHub Asset Proxy'
+      'Accept'                 : req.headers.accept
+      'Accept-Encoding'        : req.headers['accept-encoding']
+      'x-forwarded-for'        : req.headers['x-forwarded-for']
+      'x-content-type-options' : 'nosniff'
+
     delete(req.headers.cookie)
+    console.log("--------------------------------------------")
+    console.log(req.headers)
+    console.log("--------------------------------------------")
 
     query_digest = url.pathname.replace(/^\//, '')
     query_params = QueryString.parse(url.query)

        url = Url.parse query_params.url

        if url.host?
          src        = Http.createClient url.port || 80, url.host

          query_path = url.pathname
          if url.query?
            query_path += "?#{url.query}"

          req.headers.host = url.host
          delete(req.headers['connection'])

          srcReq = src.request 'GET', query_path, req.headers

          srcReq.on 'response', (srcResp) ->
            console.log url
            console.log srcResp.headers

            content_length = parseInt(srcResp.headers['content-length'])

            # don't pass cookies on
            delete(srcResp.headers['set-cookie'])
            srcResp.headers['X-Content-Type-Options'] = 'nosniff'

            if(content_length > 5242880)
              resp.writeHead 404, { }
              resp.write "Not Found"
              resp.end()
            else
              resp.writeHead srcResp.statusCode, srcResp.headers
              srcResp.on 'data', (chunk) ->
                resp.write chunk

              srcResp.on 'end', ->
                resp.end()

Crypto      = require 'crypto'
QueryString = require 'querystring'

port       = parseInt process.env.PORT || 8081
shared_key = process.env.CAMO_KEY      || '0x24FEEDFACEDEADBEEFCAFE'

server = Http.createServer (req, resp) ->
  if req.method != 'GET' || req.url == '/'
