We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2affda8 commit 0e3a17cCopy full SHA for 0e3a17c
aws_lambda_powertools/event_handler/api_gateway.py
@@ -206,7 +206,7 @@ def _add_cache_control(self, cache_control: str):
206
207
def _compress(self):
208
"""Compress the response body, but only if `Accept-Encoding` headers includes gzip."""
209
- self.response.headers["Content-Encoding"] = "gzip"
+ self.response.headers["Content-Encoding"].append("gzip")
210
if isinstance(self.response.body, str):
211
logger.debug("Converting string response to bytes before compressing it")
212
self.response.body = bytes(self.response.body, "utf-8")
0 commit comments