 
     transferred_headers.host = url.host
 
-    log transferred_headers
+    debug_log transferred_headers
 
     srcReq = src.request 'GET', query_path, transferred_headers
 

    srcReq.on 'response', (srcResp) ->
      is_finished = true

      log srcResp.headers

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

      if content_length > 5242880
        four_oh_four(resp, "Content-Length exceeded")
      else
        newHeaders =
          'content-type'           : srcResp.headers['content-type']

        switch srcResp.statusCode
          when 200
            if newHeaders['content-type'] && newHeaders['content-type'].slice(0, 5) != 'image'
              four_oh_four(resp, "Non-Image content-type returned", url)

            debug_log newHeaders

            resp.writeHead srcResp.statusCode, newHeaders
            srcResp.pipe resp
          when 301, 302, 303, 307
            if remaining_redirects <= 0
              four_oh_four(resp, "Exceeded max depth", url)
            else if !srcResp.headers['location']
              four_oh_four(resp, "Redirect with no location", url)
            else
              is_finished = false
              newUrl = Url.parse srcResp.headers['location']
