| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d591750 commit a28d666
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,16 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + | ||
| 4 | + if (!common.hasCrypto) | ||
| 5 | + common.skip('missing crypto'); | ||
| 6 | + | ||
| 7 | + const fixtures = require('../common/fixtures'); | ||
| 3 | 8 | const http = require('http'); | |
| 4 | 9 | const assert = require('assert'); | |
| 5 | 10 | const hostExpect = 'localhost'; | |
| 6 | - const fs = require('fs'); | ||
| 7 | - const path = require('path'); | ||
| 8 | - const fixtures = path.join(common.fixturesDir, 'keys'); | ||
| 9 | 11 | const options = { | |
| 10 | - key: fs.readFileSync(`${fixtures}/agent1-key.pem`), | ||
| 11 | - cert: fs.readFileSync(`${fixtures}/agent1-cert.pem`) | ||
| 12 | + key: fixtures.readKey('agent1-key.pem'), | ||
| 13 | + cert: fixtures.readKey('agent1-cert.pem') | ||
| 12 | 14 | }; | |
| 13 | 15 | let gotHttpsResp = false; | |
| 14 | 16 | let gotHttpResp = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments