Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ private enum LocalLambda {
Self.invocations.append(invocation)
}

// lambda invocation using the wrong http method
case (_, let url) where url.hasSuffix(self.invocationEndpoint):
self.writeResponse(context: context, status: .methodNotAllowed)

// /next endpoint is called by the lambda polling for work
case (.GET, let url) where url.hasSuffix(Consts.getNextInvocationURLSuffix):
// check if our server is in the correct state
Expand Down