undici
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -675,4 +675,2 @@ 'use strict' | ||
// TODO: Add test for pipelining w/ pipeline which has an empty body | ||
// stream for e.g. GET requests. | ||
if ( | ||
@@ -744,2 +742,4 @@ client.running && | ||
} | ||
assert(!request.body) | ||
} | ||
@@ -746,0 +746,0 @@ |
@@ -146,6 +146,2 @@ const { | ||
}, | ||
final (callback) { | ||
req.push(null) | ||
callback() | ||
}, | ||
destroy (err, callback) { | ||
@@ -159,2 +155,5 @@ if (!err && !this._readableState.endEmitted) { | ||
} | ||
}).on('prefinish', () => { | ||
// Node < 15 does not call _final in same tick. | ||
req.push(null) | ||
}) | ||
@@ -161,0 +160,0 @@ |
{ | ||
"name": "undici", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "An HTTP/1.1 client, written from scratch for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,6 +26,6 @@ # undici | ||
``` | ||
http - keepalive - pipe x 5,111 ops/sec ±3.54% (76 runs sampled) | ||
undici - pipeline - pipe x 6,442 ops/sec ±4.16% (73 runs sampled) | ||
undici - request - pipe x 11,922 ops/sec ±0.87% (85 runs sampled) | ||
undici - stream - pipe x 12,467 ops/sec ±1.28% (84 runs sampled) | ||
http - keepalive - pipe x 5,438 ops/sec ±4.82% (73 runs sampled) | ||
undici - pipeline - pipe x 7,689 ops/sec ±4.02% (73 runs sampled) | ||
undici - request - pipe x 11,952 ops/sec ±1.02% (84 runs sampled) | ||
undici - stream - pipe x 12,696 ops/sec ±1.10% (82 runs sampled) | ||
``` | ||
@@ -32,0 +32,0 @@ |
226754
42
7229
34