RequestAdapter does not support multiple values for query params #22
Milestone
Comments
Ah, good catch. I'll see what I can whip up |
Finatra v2 now directly uses Finagle's HTTP Request, so you can call request.getParams(...) to get all query values. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to send an array as query parameters to a GET request, jQuery encodes it as follows
For nested hashes:
There can obviously be some pretty complicated nesting of these.
Currently Finatra only pulls the head off a set of query parameters that all have the same key (first example would give only one of them). It would be nice to return the set of all values, otherwise it requires a bit of application logic/coordination to figure out which keys are actually present.
https://github.com/capotej/finatra/blob/master/src/main/scala/com/twitter/finatra/RequestAdapter.scala#L39
The text was updated successfully, but these errors were encountered: