You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble correctly generating an array of hashes for form-data. The first key-value in my array is correctly added but subsequent key-values are truncated out
When generate_multiform parses through the arrays, it only takes the first two values as a pair and ignores the rest, resulting in only the following being added to the body
Ruby 2.7.0
HTTParty 0.20.0
I am having trouble correctly generating an array of hashes for form-data. The first key-value in my array is correctly added but subsequent key-values are truncated out
Example request body:
After some digging, I saw that
HashConversions.normalize_keys(key, value)
formatted the data array objects to be inside a single arrayWhen
generate_multiform
parses through the arrays, it only takes the first two values as a pair and ignores the rest, resulting in only the following being added to the bodyA not ideal workaround has been to have each key value in an array, but that also gives an incorrect format
I was wondering if someone could advise on how to generate form data for the scenario above, or if it is not something currently supported?
The text was updated successfully, but these errors were encountered: