Skip to content

Bugfix: normalize nested hash keys with multipart data#804

Open
michaelrigart wants to merge 2 commits intojnunemaker:mainfrom
michaelrigart:bugfix/multipart-formdata
Open

Bugfix: normalize nested hash keys with multipart data#804
michaelrigart wants to merge 2 commits intojnunemaker:mainfrom
michaelrigart:bugfix/multipart-formdata

Conversation

@michaelrigart
Copy link

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.

Signed-off-by: Michaël Rigart <michael@netronix.be>
Signed-off-by: Michaël Rigart <michael@netronix.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant