2015-05-19 19:00:06 +08:00
|
|
|
'use strict';
|
2013-08-04 14:39:50 +08:00
|
|
|
var common = require('../common');
|
|
|
|
|
2015-03-04 09:11:21 +08:00
|
|
|
if (!common.hasCrypto) {
|
2016-05-12 03:34:52 +08:00
|
|
|
common.skip('missing crypto');
|
2015-07-07 23:25:55 +08:00
|
|
|
return;
|
2015-03-04 09:11:21 +08:00
|
|
|
}
|
2013-08-04 14:39:50 +08:00
|
|
|
var https = require('https');
|
2015-03-04 09:11:21 +08:00
|
|
|
|
2013-08-04 14:39:50 +08:00
|
|
|
var http = require('http');
|
|
|
|
|
2016-07-16 03:43:24 +08:00
|
|
|
https.get('https://www.google.com/', common.mustCall(function(res) {
|
2013-08-04 14:39:50 +08:00
|
|
|
res.resume();
|
2016-07-16 03:43:24 +08:00
|
|
|
}));
|
2013-08-04 14:39:50 +08:00
|
|
|
|
2016-07-16 03:43:24 +08:00
|
|
|
http.get('http://www.google.com/', common.mustCall(function(res) {
|
2013-08-04 14:39:50 +08:00
|
|
|
res.resume();
|
2016-07-16 03:43:24 +08:00
|
|
|
}));
|