mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
deps: update llhttp to 9.1.2
PR-URL: https://github.com/nodejs/node/pull/48981 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
parent
71b90faac0
commit
e9ff81016d
19 changed files with 2200 additions and 10083 deletions
|
@ -19,11 +19,11 @@ server.listen(0, common.mustCall(() => {
|
|||
const req = http.get(`http://localhost:${server.address().port}/`);
|
||||
req.end();
|
||||
req.on('error', common.mustCall((err) => {
|
||||
const reason = 'Content-Length can\'t be present with Transfer-Encoding';
|
||||
const reason = "Transfer-Encoding can't be present with Content-Length";
|
||||
assert.strictEqual(err.message, `Parse Error: ${reason}`);
|
||||
assert(err.bytesParsed < response.length);
|
||||
assert(err.bytesParsed >= response.indexOf('Transfer-Encoding'));
|
||||
assert.strictEqual(err.code, 'HPE_UNEXPECTED_CONTENT_LENGTH');
|
||||
assert.strictEqual(err.code, 'HPE_INVALID_TRANSFER_ENCODING');
|
||||
assert.strictEqual(err.reason, reason);
|
||||
assert.deepStrictEqual(err.rawPacket, response);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue