kaxil commented on code in PR #43707:
URL: https://github.com/apache/airflow/pull/43707#discussion_r1830099026
##########
airflow/api_fastapi/core_api/app.py:
##########
@@ -113,4 +114,5 @@ def init_config(app: FastAPI) -> None:
allow_headers=allow_headers,
)
+ app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=5)
Review Comment:
1. Is there a reason to select minimum_size as `1000` and compresslevel as
`5`? Worth adding a comment about it so it isn't a magic number :)
2. Is it worth making it configurable with a default?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]