-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix Urlencoded for nested Hashes (and Arrays) #24
base: master
Are you sure you want to change the base?
Conversation
One of the goals of this gem is to be free of dependencies and rovide everything on it's own. Basically we use |
Why? For what?
|
Basically because this gem was born to encapsulate all the needed logic of serializing form data into multipart or urlencoded. I'm not saying I like using URI - I said we're using it just because we did not spend time to come with better solution. Using extra dependency for a very own purpose sound to me pretty bad practice and pretty smells like leftpad of node.js. That's just my personal perception. In other words - I'll be happy to consider PR that will bring provide better default encoder as part of FormData implementation. |
377885b
to
c713a12
Compare
Done… |
Wow, floating bug from global state. I hate global state. |
ef7bd9c
to
f5386d8
Compare
Are the plans to merge this? 😅 |
Sorry for a very slow reaction. I'll try to merge it this week. |
I think I'm having an issue that this PR would fix. HTTP::FormData.create({foo: ["bar", "baz"]}).to_s # => "foo=bar&foo=baz" The correct output would be |
@ixti do you have any plan to merge this soon? we are having a similar problem because the nested hash |
Let's unify this code!
rack/rack#1281
This change is