Use url to parse req.url, req.pathname is not supported in connect.