Merge pull request #174 from thelounge/xpaw/http2
Add support for HTTP2
This commit is contained in:
commit
05be0ff57f
@ -38,7 +38,8 @@
|
|||||||
"read": "1.0.7",
|
"read": "1.0.7",
|
||||||
"request": "2.69.0",
|
"request": "2.69.0",
|
||||||
"slate-irc": "0.8.1",
|
"slate-irc": "0.8.1",
|
||||||
"socket.io": "1.4.5"
|
"socket.io": "1.4.5",
|
||||||
|
"spdy": "3.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "3.5.0",
|
"chai": "3.5.0",
|
||||||
|
@ -31,7 +31,7 @@ module.exports = function(options) {
|
|||||||
server = require("http");
|
server = require("http");
|
||||||
server = server.createServer(app).listen(port, host);
|
server = server.createServer(app).listen(port, host);
|
||||||
} else {
|
} else {
|
||||||
server = require("https");
|
server = require("spdy");
|
||||||
server = server.createServer({
|
server = server.createServer({
|
||||||
key: fs.readFileSync(https.key),
|
key: fs.readFileSync(https.key),
|
||||||
cert: fs.readFileSync(https.certificate)
|
cert: fs.readFileSync(https.certificate)
|
||||||
|
Loading…
Reference in New Issue
Block a user