Skip to content

Commit

Permalink
chore(trigger)!: remove return-body special return
Browse files Browse the repository at this point in the history
It was accidentally committed
  • Loading branch information
NamesMT committed Jul 19, 2024
1 parent 802fad8 commit f373710
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ class TriggerEventProcessor implements EventProcessor<LambdaTriggerEvent> {

const body = isBase64Encoded ? encodeBase64(await res.arrayBuffer()) : await res.text()

if (res.headers.get('return-body'))
return body

const result = {
body,
headers: {} as NonNullable<APIGatewayProxyStructuredResultV2['headers']>,
Expand Down

0 comments on commit f373710

Please sign in to comment.