Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe wrong behaviour on params' request parameter #9

Open
marianoguerra opened this issue Jul 31, 2013 · 0 comments
Open

maybe wrong behaviour on params' request parameter #9

marianoguerra opened this issue Jul 31, 2013 · 0 comments

Comments

@marianoguerra
Copy link

here http://weavejester.github.io/ring-mock/ring.mock.request.html#var-request it says

Create a minimal valid request map from a HTTP method keyword, a string
containing a URI, and an optional map of parameters that will be added to
the query string of the URI. The URI can be relative or absolute. Relative
URIs are assumed to go to http://localhost.

but

user=> (:query-string (req/request :delete "/foo" {:id 4}))
nil

user=> (slurp (:body (req/request :delete "/foo" {:id 4})))
"id=4"

with this it works

user=> (:query-string (req/query-string (req/request :delete "/foo" {:id 4}) {:id 4}))
"id=4"

is the doc wrong, the code wrong or am I wrong? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant