Skip to content

Commit 7edd4f8

Browse files
authored
[core] Fix LocalServer failure to handle large body request (Issue #481) (#504)
Fix #481
1 parent c7df9bc commit 7edd4f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AWSLambdaRuntime/Lambda+LocalServer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private struct LambdaHTTPServer {
238238
requestHead = head
239239

240240
case .body(let body):
241-
requestBody = body
241+
requestBody.setOrWriteImmutableBuffer(body)
242242

243243
case .end:
244244
precondition(requestHead != nil, "Received .end without .head")

0 commit comments

Comments
 (0)