Skip to content

Commit

Permalink
fix(context): swagger-api#1728
Browse files Browse the repository at this point in the history
  • Loading branch information
mottolini committed Sep 22, 2020
1 parent 3554539 commit c5b9cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function buildFormData(reqForm) {
if (Array.isArray(value)) {
// eslint-disable-next-line no-restricted-syntax
for (const v of value) {
formData.append(key, v);
formData.append(`${key}[]`, v);
}
} else {
formData.append(key, value);
Expand Down

0 comments on commit c5b9cdc

Please sign in to comment.