summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-host-headers.js
diff options
context:
space:
mode:
authorMichaƫl Zasso <mic.besace@gmail.com>2016-01-13 21:42:45 +0100
committerRoman Reiss <me@silverwind.io>2016-01-13 23:16:17 +0100
commitd1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch)
tree9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/parallel/test-https-host-headers.js
parentec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff)
downloadandroid-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.gz
android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.bz2
android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.zip
test: fix style issues after eslint update
Replace var keyword with const or let. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
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);