summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-host-headers.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-https-host-headers.js')
-rw-r--r--test/parallel/test-https-host-headers.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js
index 0ea32f320e..1e71fd5b9e 100644
--- a/test/parallel/test-https-host-headers.js
+++ b/test/parallel/test-https-host-headers.js
@@ -8,12 +8,12 @@ if (!common.hasCrypto) {
}
var https = require('https');
-var fs = require('fs'),
- options = {
- key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
- cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
- },
- httpsServer = https.createServer(options, reqHandler);
+const fs = require('fs');
+const options = {
+ key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
+ cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem')
+};
+const httpsServer = https.createServer(options, reqHandler);
function reqHandler(req, res) {
console.log('Got request: ' + req.headers.host + ' ' + req.url);