jnunemaker / httparty

:tada: Makes http fun again!
MIT License
5.81k stars 964 forks source link

Bugfix: normalize nested hash keys with multipart data #804

Open michaelrigart opened 3 months ago

michaelrigart commented 3 months ago

While using HTTParty, I encountered a bug already mentioned in #757 .

It seems that normalizing the payload hash for multipart/form-data was not going as expected when the payload contained nested hashes and/or arrays.

The recursion inside the normalize_keys method was not returning the proper result. This PR should fix this.