diff --git a/bench/wasm.ts b/bench/wasm.ts index 820b6779..a1654667 100644 --- a/bench/wasm.ts +++ b/bench/wasm.ts @@ -111,11 +111,11 @@ async function main () { const samples = formatNumber(iterations, 0).padStart(12); const size = formatNumber(total / (1024 * 1024), 2).padStart(8); const speed = formatNumber(bw / (1024 * 1024), 2).padStart(10); - const throughtput = formatNumber(iterations / time, 2).padStart(10); + const throughput = formatNumber(iterations / time, 2).padStart(10); const duration = formatNumber(time, 2).padStart(6); console.log( - `${label} | ${samples} samples | ${size} MB | ${speed} MB/s | ${throughtput} ops/sec | ${duration} s` + `${label} | ${samples} samples | ${size} MB | ${speed} MB/s | ${throughput} ops/sec | ${duration} s` ); } } diff --git a/bin/build_wasm.ts b/bin/build_wasm.ts index b3573324..755c049d 100644 --- a/bin/build_wasm.ts +++ b/bin/build_wasm.ts @@ -35,7 +35,7 @@ if (process.argv[2] === '--docker') { let cmd = `docker run --rm --platform=${platform.toString().trim()}`; // Try to avoid root permission problems on compiled assets // when running on linux. - // It will work flawessly if uid === gid === 1000 + // It will work flawlessly if uid === gid === 1000 // there will be some warnings otherwise. if (process.platform === 'linux') { cmd += ` --user ${process.getuid!()}:${process.getegid!()}`; diff --git a/examples/wasm.ts b/examples/wasm.ts index 89f9cb2a..b1680d3a 100644 --- a/examples/wasm.ts +++ b/examples/wasm.ts @@ -1,5 +1,5 @@ /** - * A minimal Parser that mimicks a small fraction of the Node.js parser + * A minimal Parser that mimics a small fraction of the Node.js parser * API. * To run: * - `npm run build-wasm` diff --git a/src/llhttp/constants.ts b/src/llhttp/constants.ts index f500c83e..ac1d950f 100644 --- a/src/llhttp/constants.ts +++ b/src/llhttp/constants.ts @@ -174,6 +174,7 @@ export const STATUSES = { CONNECTION_TIMEOUT: 522, // Unofficial ORIGIN_IS_UNREACHABLE: 523, // Unofficial TIMEOUT_OCCURED: 524, // Unofficial + TIMEOUT_OCCURRED: 524, // Unofficial SSL_HANDSHAKE_FAILED: 525, // Unofficial INVALID_SSL_CERTIFICATE: 526, // Unofficial RAILGUN_ERROR: 527, // Unofficial diff --git a/test/response/transfer-encoding.md b/test/response/transfer-encoding.md index ab1562b2..65bd763a 100644 --- a/test/response/transfer-encoding.md +++ b/test/response/transfer-encoding.md @@ -131,7 +131,7 @@ off=89 headers complete status=200 v=1/1 flags=200 content_length=0 off=89 len=5 span[body]="World" ``` -## `chunkedchunked` transfer-encoding does not enable chunked enconding +## `chunkedchunked` transfer-encoding does not enable chunked encoding This check that the word `chunked` repeat more than once (with or without spaces) does not mistakenly enables chunked encoding.