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:
Paolo Insogna 2023-09-16 13:08:18 +02:00 committed by GitHub
parent 71b90faac0
commit e9ff81016d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 2200 additions and 10083 deletions

View file

@ -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);