Skip to content

Commit 9cbe227

Browse files
committed
fix: remove code from bad rebase
1 parent 79a677e commit 9cbe227

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

-5
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,6 @@ def build(self, event: ResponseEventT, cors: Optional[CORSConfig] = None) -> Dic
795795
elif self.response.is_json() and not isinstance(self.response.body, str):
796796
self.response.body = self.serializer(self.response.body)
797797

798-
# We only apply the serializer when the content type is JSON and the
799-
# body is not a str, to avoid double encoding
800-
elif self.response.is_json() and not isinstance(self.response.body, str):
801-
self.response.body = self.serializer(self.response.body)
802-
803798
return {
804799
"statusCode": self.response.status_code,
805800
"body": self.response.body,

0 commit comments

Comments
 (0)