Skip to content
Snippets Groups Projects
Unverified Commit e49f7f40 authored by tamaina's avatar tamaina Committed by GitHub
Browse files

Update index.ts

parent 4cc38ce0
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ function createServer() {
Object.keys(config.https).forEach(k => {
certs[k] = fs.readFileSync(config.https[k]);
});
certs['allowHTTP1'] = true
return http2.createSecureServer(certs, app.callback());
} else {
return http.createServer(app.callback());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment