From cc5064c89787971cbbef27bd5da06f6a066c4aa0 Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Mon, 12 Dec 2022 10:58:46 -0500 Subject: [PATCH] refactor(alb): remove unused last request options --- src/events/alb/HttpServer.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/events/alb/HttpServer.js b/src/events/alb/HttpServer.js index 64b8fa3f9..9db82cac7 100644 --- a/src/events/alb/HttpServer.js +++ b/src/events/alb/HttpServer.js @@ -22,8 +22,6 @@ export default class HttpServer { #server = null - #lastRequestOptions = null - #terminalInfo = [] constructor(serverless, options, lambda) { @@ -172,13 +170,6 @@ export default class HttpServer { const { functionKey, method, stage } = params return async (request, h) => { - this.#lastRequestOptions = { - headers: request.headers, - method: request.method, - payload: request.payload, - url: request.url.href, - } - const requestPath = this.#options.noPrependStageInUrl ? request.path : request.path.substr(`/${stage}`.length)