We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e910e85 commit 550613bCopy full SHA for 550613b
lib/test.js
@@ -236,7 +236,7 @@ Test.prototype._assertHeader = function(header, res) {
236
237
if (typeof actual === 'undefined') return new Error('expected "' + field + '" header field');
238
// This check handles header values that may be a String or single element Array
239
- if ((actual instanceof Array && actual.toString() === fieldExpected)
+ if ((Array.isArray(actual) && actual.toString() === fieldExpected)
240
|| fieldExpected === actual) {
241
return;
242
}
0 commit comments