Browse Source

Add default status code for lambra integration http event

master
Nicola Peduzzi 8 years ago
parent
commit
f8d93b361b
  1. 1
      examples/babel/serverless.yml
  2. 1
      examples/include-external-npm-packages/serverless.yml
  3. 1
      examples/multiple-entries/serverless.yml
  4. 1
      examples/typescript/serverless.yml
  5. 2
      lib/serve.js

1
examples/babel/serverless.yml

@ -15,3 +15,4 @@ functions:
- http:
method: get
path: hello
integration: lambda

1
examples/include-external-npm-packages/serverless.yml

@ -18,3 +18,4 @@ functions:
- http:
method: GET
path: first
integration: lambda

1
examples/multiple-entries/serverless.yml

@ -21,3 +21,4 @@ functions:
- http:
method: GET
path: second
integration: lambda

1
examples/typescript/serverless.yml

@ -15,3 +15,4 @@ functions:
- http:
method: get
path: hello
integration: lambda

2
lib/serve.js

@ -122,7 +122,7 @@ module.exports = {
}
if (isLambdaProxyIntegration) {
res.status(resp.statusCode).send(resp.body);
res.status(resp.statusCode || 200).send(resp.body);
} else {
res.status(200).send(resp);
}

Loading…
Cancel
Save