   else
     url = Url.parse req.url
 
+    four_oh_hour = (msg) ->
+      log msg
+      resp.writeHead 404, { }
+      resp.write "Not Found"
+      resp.end()
+
     transferred_headers =
-      'Via'                    : 'Camo Asset Proxy'
+      'Via'                    : process.env.CAMO_HEADER_VIA or= "Camo Asset Proxy #{version}"
       '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("--------------------------------------------")
+    log(req.headers)
 
     query_digest = url.pathname.replace(/^\//, '')
     query_params = QueryString.parse(url.query)

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 == '/'


          transferred_headers.host = url.host

          log transferred_headers

          srcReq = src.request 'GET', query_path, transferred_headers

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

            content_length  = srcResp.headers['content-length']

            if(content_length > 5242880)
              four_oh_hour("Content-Length exceeded")
            else
              newHeaders =
                'expires'                : srcResp.headers['expires']
