Needed to set request.url to URL.parse