fix a bug about when request url has no query parameters