Skip to content

Commit

Permalink
fix: move util.isArray to Array.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Apr 30, 2024
1 parent 53adbd8 commit 440d3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FormData.prototype.append = function(field, value, options) {
}

// https://github.com/felixge/node-form-data/issues/38
if (util.isArray(value)) {
if (Array.isArray(value)) {
// Please convert your array into string
// the way web server expects it
this._error(new Error('Arrays are not supported.'));
Expand Down

0 comments on commit 440d3be

Please sign in to comment.