-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow query strings to have nested params and arrays. #55
Conversation
3 similar comments
@zhongwencool there are 6 failing ibrowse and httpc adapter tests that were failing on a clean clone from master. My changes shouldn't have changed anything to do with them... Can you take a look when you have a chance? |
That's great! |
3 similar comments
@zhongwencool I noticed some coverage was missing from the Query module, so I also added the tests from Plug, but it seems those tests aren't running when you do |
The test file needs to be named |
Oh, derp! I feel silly now... |
3 similar comments
Thanks @doughsay :0 |
Currently, maxwell can't make requests to servers that allow arrays and nested params in query strings. Phoenix and Rails servers (for example) all support this kind of query string, so not being able to make these kinds of requests is a big blocker for some use-cases.
To implement this, I've copied the query string encoding/decoding module from Plug, because there is no other package currently available that has this functionality. I've opened an issue with the Plug team about it and they are ok with copy-pasting for now. (elixir-plug/plug#539)
Let me know what you think!
(also, use ?w=1 to see the important changes, since I fixed a few unrelated whitespace issues.)