mirror of
https://github.com/nodejs/node.git
synced 2025-05-14 11:45:50 +00:00

Fixes: https://github.com/nodejs/node/issues/38707 PR-URL: https://github.com/nodejs/node/pull/38720 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
14 lines
250 B
JavaScript
14 lines
250 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const https = require('https');
|
|
|
|
const request = https.get('https://example.com');
|
|
|
|
request.on('socket', (socket) => {
|
|
socket.unref();
|
|
});
|