We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ec49f commit d68035fCopy full SHA for d68035f
lib/index.js
@@ -234,8 +234,8 @@ module.exports = function (options, handler) {
234
};
235
236
function mapResponseHeaders(event, context, result) {
237
- const headers = result.headers || {}; // NOTE: Mutating event.headers; prefer deep clone of event.headers
238
- return headers;
+ const headers = Object.assign({}, result.headers || {}); // NOTE: Mutating event.headers; prefer deep clone of event.headers
+ return headers;
239
}
240
241
function constructBaseLogData(
0 commit comments