braid-http 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/braid-http-client.js +1 -1
- package/braid-http-server.js +1 -1
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -362,7 +362,7 @@ var subscription_parser = (cb) => ({
|
|
|
362
362
|
read (input) {
|
|
363
363
|
|
|
364
364
|
// Store the new input!
|
|
365
|
-
this.state.input.push(
|
|
365
|
+
for (let x of input) this.state.input.push(x)
|
|
366
366
|
|
|
367
367
|
// Now loop through the input and parse until we hit a dead end
|
|
368
368
|
while (this.state.input.length) {
|
package/braid-http-server.js
CHANGED
|
@@ -123,7 +123,7 @@ function parse_update (req, cb) {
|
|
|
123
123
|
req.on('data', function parse (chunk) {
|
|
124
124
|
|
|
125
125
|
// Merge the latest chunk into our buffer
|
|
126
|
-
buffer.push(
|
|
126
|
+
for (let x of chunk) buffer.push(x)
|
|
127
127
|
|
|
128
128
|
while (patches.length < num_patches) {
|
|
129
129
|
let h = extractHeader(buffer)
|