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 f9a2bf6 commit 46e2b84Copy full SHA for 46e2b84
lib/request.js
@@ -94,6 +94,22 @@ Request.prototype.end = function (s) {
94
}
95
this.xhr.send(body);
96
97
+ else if (/Array/.test(Object.prototype.toString.call(this.body[0]))) {
98
+ var len = 0;
99
+ for (var i = 0; i < this.body.length; i++) {
100
+ len += this.body[i].length;
101
+ }
102
+ var body = new(this.body[0].constructor)(len);
103
+ var k = 0;
104
+
105
106
+ var b = this.body[i];
107
+ for (var j = 0; j < b.length; j++) {
108
+ body[k++] = b[j];
109
110
111
+ this.xhr.send(body);
112
113
else {
114
var body = '';
115
for (var i = 0; i < this.body.length; i++) {
0 commit comments