Skip to content

Commit 43d55d3

Browse files
committed
ts fix
1 parent d2672fc commit 43d55d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function handler(req: IncomingMessage, res: ServerResponse) {
3232
const userAgent = headers['user-agent'] || '';
3333
const reqId = String(headers['x-vercel-id'] || '')
3434
.split(':')
35-
.pop();
35+
.pop() || '';
3636
console.log(`${method} ${headers.host}${url}`);
3737
console.log(`user-agent: ${userAgent}`);
3838
if (

0 commit comments

Comments
 (0)