| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0ebb4df commit 94c7331
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,7 @@ const initHooks = require('./init-hooks'); | |||
| 11 | 11 | const verifyGraph = require('./verify-graph'); | |
| 12 | 12 | const fs = require('fs'); | |
| 13 | 13 | const tls = require('tls'); | |
| 14 | + const path = require('path'); | ||
| 14 | 15 | ||
| 15 | 16 | const hooks = initHooks(); | |
| 16 | 17 | hooks.enable(); | |
@@ -20,8 +21,8 @@ hooks.enable(); | |||
| 20 | 21 | // | |
| 21 | 22 | const server = tls | |
| 22 | 23 | .createServer({ | |
| 23 | - cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'), | ||
| 24 | - key: fs.readFileSync(common.fixturesDir + '/test_key.pem') | ||
| 24 | + cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')), | ||
| 25 | + key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')) | ||
| 25 | 26 | }) | |
| 26 | 27 | .on('listening', common.mustCall(onlistening)) | |
| 27 | 28 | .on('secureConnection', common.mustCall(onsecureConnection)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments