We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ebc9dd commit f3c68d6Copy full SHA for f3c68d6
Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift
@@ -149,6 +149,10 @@ private enum LocalLambda {
149
Self.invocations.append(invocation)
150
}
151
152
+ // lambda invocation using the wrong http method
153
+ case (_, let url) where url.hasSuffix(self.invocationEndpoint):
154
+ self.writeResponse(context: context, status: .methodNotAllowed)
155
+
156
// /next endpoint is called by the lambda polling for work
157
case (.GET, let url) where url.hasSuffix(Consts.getNextInvocationURLSuffix):
158
// check if our server is in the correct state
0 commit comments