Handle query string

`req.params[0]` is only include a path. Not include a query string.
For example, in requested url is `/path/to/page?q=brabrabra`. Then will be dropping the `?q=brabrabra`.
So, this patch is handling query string from `req.url`.