Skip to content

Commit d489504

Browse files
committed
do not hardcode header content-type on response
1 parent 3897986 commit d489504

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
@@ -440,7 +440,7 @@ internal struct LambdaHTTPServer {
440440
LocalServerResponse(
441441
id: requestId,
442442
status: .ok,
443-
headers: HTTPHeaders([("Content-Type", "application/json")]),
443+
headers: HTTPHeaders(), // the local server has no mecanism to collect headers set by the lambda function
444444
body: body,
445445
final: true
446446
)

0 commit comments

Comments
 (0)