You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add some more nuance to this issue, Rails uses [] after the parameter name to indicate that a given attribute is a list: ?issue_id[]=1&issue_id[]=2 - without that, the last value for a given param will be used, eg: ?issue_id=1&issue_id=2 will yield issue_id=2 on the server.
Hello! I'm having a problem with duplicated query params, I need to receive a list of parameters on the server, I'm using compojure, so if I go with:
;; client GET /?list-of-vals=1&list-of-vals=2
This works great with an XMLHttpRequest (or other clients), but not with cljs-http.
So, if I try to parse multiple params with the same name:
Given that query params are handled with a map this behaviour is expected
Given all that, how do you handle a list of query params correctly? This looks like a common [1,2] practice.
1- http://stackoverflow.com/a/2602127/600052
2- http://stackoverflow.com/a/13261403/600052
The text was updated successfully, but these errors were encountered: