 
     timeout = setTimeout sendResponse, 2000
 
-    http.get url, (httpResp) ->
+    request = http.get url, (httpResp) ->
         if httpResp.statusCode != 200
             clearTimeout timeout
             sendResponse()

            unitInfo = JSON.parse respData
            clearTimeout timeout
            sendResponse()

server.configure ->
    staticDir = __dirname + '/../static'

    STATIC_URL + fpath

requestHandler = (req, res, next) ->
    unless req.path? and req.host?
        next()
        return
    match = false
    for pattern in ALLOWED_URLS
        if req.path.match pattern
