We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b386b3 commit e1cc780Copy full SHA for e1cc780
lib/_http_agent.js
@@ -478,7 +478,7 @@ Agent.prototype.keepSocketAlive = function keepSocketAlive(socket) {
478
const keepAliveHint = socket._httpMessage.res.headers['keep-alive'];
479
480
if (keepAliveHint) {
481
- const hint = keepAliveHint.exec(/^timeout=(\d+)/)?.[1];
+ const hint = /^timeout=(\d+)/.exec(keepAliveHint)?.[1];
482
483
if (hint) {
484
const serverHintTimeout = NumberParseInt(hint) * 1000;
0 commit comments