8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683c5fa commit 05286b6Copy full SHA for 05286b6
test/parallel/test-https-host-headers.js
@@ -1,15 +1,16 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
+
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
const assert = require('assert');
9
const https = require('https');
-const fs = require('fs');
10
11
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
13
+ cert: fixtures.readKey('agent1-cert.pem')
14
};
15
const httpsServer = https.createServer(options, reqHandler);
16
0 commit comments