Skip to content

Commit 3d321b3

Browse files
authored
Merge pull request spring-media#13 from rideways/master
Fix Unexpected Error on invalid JSON passed as request body
2 parents e3972c5 + c5dcec5 commit 3d321b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/proxyIntegration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function process(proxyIntegrationConfig, event, context) {
9494
return Promise.resolve({
9595
statusCode: 400,
9696
headers: headers,
97-
body: 'body is not a valid JSON'
97+
body: JSON.stringify('body is not a valid JSON')
9898
});
9999
}
100100
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-lambda-router",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "AWS lambda router",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)