fixed req.url check on connect method