Skip to content

Commit

Permalink
Update lib/_http_agent.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Jul 3, 2024
1 parent 2b386b3 commit e1cc780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ Agent.prototype.keepSocketAlive = function keepSocketAlive(socket) {
const keepAliveHint = socket._httpMessage.res.headers['keep-alive'];

if (keepAliveHint) {
const hint = keepAliveHint.exec(/^timeout=(\d+)/)?.[1];
const hint = /^timeout=(\d+)/.exec(keepAliveHint)?.[1];

if (hint) {
const serverHintTimeout = NumberParseInt(hint) * 1000;
Expand Down

0 comments on commit e1cc780

Please sign in to comment.