From d93a63f5ff6d670a0345340c5c46578cb25a5ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 12 May 2021 02:47:38 +0200 Subject: [PATCH] docs,lib: fix typo in meaning of idempotent option --- docs/api/Dispatcher.md | 2 +- lib/client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/Dispatcher.md b/docs/api/Dispatcher.md index f10e667fcde..ef8cbdd762e 100644 --- a/docs/api/Dispatcher.md +++ b/docs/api/Dispatcher.md @@ -196,7 +196,7 @@ Returns: `void` * **method** `string` * **body** `string | Buffer | Uint8Array | stream.Readable | null` (optional) - Default: `null` * **headers** `UndiciHeaders` (optional) - Default: `null` -* **idempotent** `boolean` (optional) - Default: `true` if `method` is `'HEAD'` or `'GET'` - Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceeding requests in the pipeline has completed. +* **idempotent** `boolean` (optional) - Default: `true` if `method` is `'HEAD'` or `'GET'` - Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline has completed. * **upgrade** `string | null` (optional) - Default: `null` - Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. #### Parameter: `DispatchHandlers` diff --git a/lib/client.js b/lib/client.js index f7f56f0af16..d84571fa00e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1151,7 +1151,7 @@ function _resume (client, sync) { } if (client[kRunning] > 0 && (request.upgrade || request.method === 'CONNECT')) { - // Don't dispatch an upgrade until all preceeding requests have completed. + // Don't dispatch an upgrade until all preceding requests have completed. // A misbehaving server might upgrade the connection before all pipelined // request has completed. return