fix a bug in request.url()