Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-http-https-default-ports.js « internet « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c7e6b3baf7ccdc4d7b38860f5061ed70d435d8ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'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();
}));