Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bench/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion bin/build_wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!()}`;
Expand Down
2 changes: 1 addition & 1 deletion examples/wasm.ts
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
1 change: 1 addition & 0 deletions src/llhttp/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/response/transfer-encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down