diff --git a/tests/integration/httpApi-headers/src/handler.js b/tests/integration/httpApi-headers/src/handler.js index b801a5864..9e2ba49bf 100644 --- a/tests/integration/httpApi-headers/src/handler.js +++ b/tests/integration/httpApi-headers/src/handler.js @@ -1,8 +1,10 @@ 'use strict' -exports.echoHeaders = async function get(event) { +const { stringify } = JSON + +exports.echoHeaders = async function echoHeaders(event) { return { - body: JSON.stringify({ + body: stringify({ headersReceived: event.headers, }), statusCode: 200,