From c65dcb9552919ab9c8eb2ddc5b860cff2813eda3 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Tue, 7 Nov 2023 11:39:26 +0800 Subject: [PATCH] fix(core): allow http1 in core services (#4823) --- packages/core/src/app/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/app/init.ts b/packages/core/src/app/init.ts index 5dcdb9823..4ffdb811c 100644 --- a/packages/core/src/app/init.ts +++ b/packages/core/src/app/init.ts @@ -63,7 +63,7 @@ export default async function initApp(app: Koa): Promise { if (isHttpsEnabled && httpsCert && httpsKey) { const createHttp2Server = async () => http2.createSecureServer( - { cert: await fs.readFile(httpsCert), key: await fs.readFile(httpsKey) }, + { cert: await fs.readFile(httpsCert), key: await fs.readFile(httpsKey), allowHTTP1: true }, app.callback() );