Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Commit 8f4af1f

Browse files
committed
should fix #10
1 parent 14dcf0a commit 8f4af1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LambdaRuntime/Events/APIGateway.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ extension APIGateway {
8585
decoder: JSONDecoder = JSONDecoder(),
8686
encoder: JSONEncoder = JSONEncoder(),
8787
_ handler: @escaping (APIGateway.Request, Context) -> EventLoopFuture<APIGateway.Response>)
88-
-> ((NIO.ByteBuffer, Context) -> EventLoopFuture<ByteBuffer>)
88+
-> ((NIO.ByteBuffer, Context) -> EventLoopFuture<ByteBuffer?>)
8989
{
90-
return { (inputBytes: NIO.ByteBuffer, ctx: Context) -> EventLoopFuture<ByteBuffer> in
90+
return { (inputBytes: NIO.ByteBuffer, ctx: Context) -> EventLoopFuture<ByteBuffer?> in
9191

9292
let req: APIGateway.Request
9393
do {

0 commit comments

Comments
 (0)