mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 11:13:55 +00:00

PR-URL: https://github.com/nodejs/node/pull/10550 Reviewed-By: Rich Trott <rtrott@gmail.com>
19 lines
365 B
JavaScript
19 lines
365 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto) {
|
|
common.skip('missing crypto');
|
|
return;
|
|
}
|
|
const https = require('https');
|
|
|
|
const http = require('http');
|
|
|
|
https.get('https://www.google.com/', common.mustCall(function(res) {
|
|
res.resume();
|
|
}));
|
|
|
|
http.get('http://www.google.com/', common.mustCall(function(res) {
|
|
res.resume();
|
|
}));
|