mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-08-23 05:54:06 +07:00
Set keepAlive to false. After Node 19 it is true by default.
This commit is contained in:
@ -26,7 +26,8 @@ export async function fetch(
|
||||
const options: https.RequestOptions = {
|
||||
hostname: url_object.hostname,
|
||||
path: url_object.pathname,
|
||||
headers: headers
|
||||
headers: headers,
|
||||
agent: new https.Agent({keepAlive: false})
|
||||
};
|
||||
const req = https.get(options, (res: IncomingMessage) => {
|
||||
if (res.statusCode === 200) {
|
||||
|
Reference in New Issue
Block a user