lolgab/snunit

Support query parameters in path

Closed this issue · 1 comments

There isn't any way to get the query parameters passed in the path.
calling http://localhost:8081/a/path?param=1
req.path returns /a/path without any param.
Unit provides the query as a separate String field in the request which.

Fixed. Now you can call req.query to get a string with the query parameters.