FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix relative file reading · metcoder95/https-pem@0bb5af9 · GitHub

Repository navigation

Commit 0bb5af9

Browse files
committed
Fix relative file reading
1 parent 722584a commit 0bb5af9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎index.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict'
22

3+
var path = require('path')
34
var fs = require('fs')
45

5-
exports.key = fs.readFileSync('./key.pem')
6-
exports.cert = fs.readFileSync('./cert.pem')
6+
exports.key = fs.readFileSync(path.join(__dirname, 'key.pem'))
7+
exports.cert = fs.readFileSync(path.join(__dirname, 'cert.pem'))

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL