diff options
Diffstat (limited to 'src/nodejs/unit-http')
-rwxr-xr-x | src/nodejs/unit-http/http_server.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nodejs/unit-http/http_server.js b/src/nodejs/unit-http/http_server.js index 061c39aa..057a1f26 100755 --- a/src/nodejs/unit-http/http_server.js +++ b/src/nodejs/unit-http/http_server.js @@ -59,18 +59,10 @@ ServerResponse.prototype.setHeader = function setHeader(name, value) { count = value.length; value.forEach(function(val) { - if (typeof val !== 'string' && typeof val !== 'number') { - throw new TypeError('Array entries must be string or number'); - } - value_len += Buffer.byteLength(val + "", 'latin1'); }); } else { - if (typeof value !== 'string' && typeof value !== 'number') { - throw new TypeError('Value argument must be string, number, or array'); - } - count = 1; value_len = Buffer.byteLength(value + "", 'latin1'); } |