Skip to content

Commit

Permalink
refactor(alb): remove unused last request options
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Dec 12, 2022
1 parent 3ae0c7e commit cc5064c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/events/alb/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export default class HttpServer {

#server = null

#lastRequestOptions = null

#terminalInfo = []

constructor(serverless, options, lambda) {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cc5064c

Please sign in to comment.