| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9f6d535 commit de198a9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,9 +6,8 @@ | |||
| 6 | 6 | const common = require('../common'); | |
| 7 | 7 | if (!common.hasCrypto) | |
| 8 | 8 | common.skip('missing crypto'); | |
| 9 | - const fs = require('fs'); | ||
| 9 | + const fixtures = require('../common/fixtures'); | ||
| 10 | 10 | const h2 = require('http2'); | |
| 11 | - const path = require('path'); | ||
| 12 | 11 | const url = require('url'); | |
| 13 | 12 | const URL = url.URL; | |
| 14 | 13 | ||
@@ -52,8 +51,8 @@ const URL = url.URL; | |||
| 52 | 51 | { | |
| 53 | 52 | ||
| 54 | 53 | const options = { | |
| 55 | - key: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-key.pem')), | ||
| 56 | - cert: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-cert.pem')) | ||
| 54 | + key: fixtures.readKey('agent3-key.pem'), | ||
| 55 | + cert: fixtures.readKey('agent3-cert.pem') | ||
| 57 | 56 | }; | |
| 58 | 57 | ||
| 59 | 58 | const server = h2.createSecureServer(options); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments