summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/http.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/http.js b/lib/http.js
index 3040d33d6d..912e3da170 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -597,9 +597,8 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
return true;
}
- if (typeof chunk !== 'string' && !Buffer.isBuffer(chunk) &&
- !Array.isArray(chunk)) {
- throw new TypeError('first argument must be a string, Array, or Buffer');
+ if (typeof chunk !== 'string' && !Buffer.isBuffer(chunk)) {
+ throw new TypeError('first argument must be a string or Buffer');
}
if (chunk.length === 0) return false;