Skip to content

Commit 440d3be

Browse files
fix: move util.isArray to Array.isArray
1 parent 53adbd8 commit 440d3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/form_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ FormData.prototype.append = function(field, value, options) {
6161
}
6262

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

0 commit comments

Comments
 (0)