From 52814c6190513d17790ee2e365e4c55250c43956 Mon Sep 17 00:00:00 2001 From: Luo xinzheng Date: Wed, 13 Mar 2024 16:57:33 +0800 Subject: [PATCH] Update req_config.md --- posts/en/req_config.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/posts/en/req_config.md b/posts/en/req_config.md index e97b384..13b1ce2 100644 --- a/posts/en/req_config.md +++ b/posts/en/req_config.md @@ -149,7 +149,8 @@ These are the available config options for making requests. Only the `url` is re // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http // and https requests, respectively, in node.js. This allows options to be added like - // `keepAlive` that are not enabled by default. + // `keepAlive` that are not enabled by default. Since node.js v19.0.0, the default + // `http.globalAgent` and `https.globalAgent` instances are created with `keepAlive: true` httpAgent: new http.Agent({ keepAlive: true }), httpsAgent: new https.Agent({ keepAlive: true }),