diff --git a/build_number b/build_number index 361dbd8..a01f827 100644 --- a/build_number +++ b/build_number @@ -1 +1 @@ -770 +771 diff --git a/frontend/server/server.js b/frontend/server/server.js index c1a3408..60a60d2 100644 --- a/frontend/server/server.js +++ b/frontend/server/server.js @@ -40,7 +40,7 @@ function bootstrap() { /* Start HTTP/S server */ const listener = async (req, res) => { try{await _handleRequest(req, res);} catch(e){error.error(e.stack?e.stack.toString():e.toString()); _sendError(req,res,500,e);} } const options = conf.ssl ? {key: fs.readFileSync(conf.sslKeyFile), cert: fs.readFileSync(conf.sslCertFile)} : null; - const httpd = options && (!conf.forceHTTP1) ? http2.createSecureServer(options, listener) : options ? https.createServer(options, listener) : http.createServer(listener); // create server for http2 or http1 based on configurations + const httpd = options && (!conf.forceHTTP1) ? http2.createSecureServer({...options, allowHTTP1: true}, listener) : options ? https.createServer(options, listener) : http.createServer(listener); // create server for http2 or http1 based on configurations const hostinterface = os.platform!="darwin"?(conf.host||"::"):"::"; // Mac won't let app bind to lower ports unless it listens to the wildcard host httpd.setTimeout(conf.timeout); httpd.listen(conf.port, hostinterface);