Skip to content
Myr

refactor(aws-lambda): remove unused setHeadersToResult (#2828)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TATSUNO “Taz” Yasuhiro · committed by GitHub · parent 645b4f2 · Browse files · 1 file+1 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−20 removed

  • other:+1 added−20 removed

1 file+1 added−20 removed

modified:src/adapter/aws-lambda/handler.ts+1 added-20 removed
377 unmodified lines
378 }379 }380 return headers381 }382 protected setHeadersToResult(383 event: ALBProxyEvent,384 result: APIGatewayProxyResult,385 headers: Headers386 ): void {387 // When multiValueHeaders is present in event set multiValueHeaders in result388 if (event.multiValueHeaders) {389 const multiValueHeaders: { [key: string]: string[] } = {}390 for (const [key, value] of headers.entries()) {391 multiValueHeaders[key] = [value]392 }393 result.multiValueHeaders = multiValueHeaders394 } else {395 const singleValueHeaders: Record<string, string> = {}396 for (const [key, value] of headers.entries()) {397 singleValueHeaders[key] = value398 }399 result.headers = singleValueHeaders400 }401 }382383 protected getPath(event: ALBProxyEvent): string {384 return event.path385 }386
89 unmodified lines