Skip to content

Commit 4326748

Browse files
committed
fix: add some type coercion that keeps existing behavior
1 parent 4021c7c commit 4326748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/express-app/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ function httpServer<
298298

299299
return https.createServer(
300300
{
301-
key: config.key ? Buffer.from(config.key) : undefined,
302-
cert: config.certificate ? Buffer.from(config.certificate) : undefined,
301+
key: config.key ? Buffer.from(config.key as string) : undefined,
302+
cert: config.certificate ? Buffer.from(config.certificate as string) : undefined,
303303
},
304304
app,
305305
);

0 commit comments

Comments
 (0)