Skip to content

Commit 9687a3e

Browse files
author
Hyunje Jun
committed
Build fix with the latest type definitions
1 parent 972c283 commit 9687a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function middleware(config: Line.Config & Line.MiddlewareConfig):
1919
return (req, res, next) => {
2020
// header names are lower-cased
2121
// https://nodejs.org/api/http.html#http_message_headers
22-
const signature = req.headers["x-line-signature"];
22+
const signature = req.headers["x-line-signature"] as string;
2323

2424
if (!signature) {
2525
next();

0 commit comments

Comments
 (0)