| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 14aee78 commit 643a2c6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,14 @@ const common = require('../common'); | |||
| 3 | 3 | if (!common.hasCrypto) | |
| 4 | 4 | common.skip('missing crypto'); | |
| 5 | 5 | ||
| 6 | + const fixtures = require('../common/fixtures'); | ||
| 7 | + | ||
| 6 | 8 | const assert = require('assert'); | |
| 7 | 9 | const https = require('https'); | |
| 8 | - const fs = require('fs'); | ||
| 9 | - const path = require('path'); | ||
| 10 | 10 | ||
| 11 | 11 | const options = { | |
| 12 | - key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), | ||
| 13 | - cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) | ||
| 12 | + key: fixtures.readSync('test_key.pem'), | ||
| 13 | + cert: fixtures.readSync('test_cert.pem') | ||
| 14 | 14 | }; | |
| 15 | 15 | ||
| 16 | 16 | const server = https.createServer(options, common.mustCall(function(req, res) { | |
@@ -51,7 +51,7 @@ function rejectUnauthorized() { | |||
| 51 | 51 | function authorized() { | |
| 52 | 52 | const options = { | |
| 53 | 53 | port: server.address().port, | |
| 54 | - ca: [fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))] | ||
| 54 | + ca: [fixtures.readSync('test_cert.pem')] | ||
| 55 | 55 | }; | |
| 56 | 56 | options.agent = new https.Agent(options); | |
| 57 | 57 | const req = https.request(options, function(res) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments