This is an automated email from the ASF dual-hosted git repository.

jasonliu pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new 10f275104c2 [v3-1-test] Fix GZipMiddleware with correct comment 
placement (#61538) (#61566)
10f275104c2 is described below

commit 10f275104c281a2965db1a4401708b1f9241d132
Author: Jason(Zhe-You) Liu <[email protected]>
AuthorDate: Mon Feb 9 21:25:43 2026 +0800

    [v3-1-test] Fix GZipMiddleware with correct comment placement (#61538) 
(#61566)
    
    (cherry picked from commit 54d7852c61214a5b8fe8c743c8a3b58083d19303)
    
    Co-authored-by: Eason09053360 <[email protected]>
---
 airflow-core/src/airflow/api_fastapi/core_api/app.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/api_fastapi/core_api/app.py 
b/airflow-core/src/airflow/api_fastapi/core_api/app.py
index dba358abebc..460bacd0a30 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/app.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/app.py
@@ -182,10 +182,10 @@ def init_middlewares(app: FastAPI) -> None:
     app.add_middleware(JWTRefreshMiddleware)
 
     # The GzipMiddleware should be the last middleware added as 
https://github.com/apache/airflow/issues/60165 points out.
-    app.add_middleware(GZipMiddleware, minimum_size=1024, compresslevel=5)
     # Compress responses greater than 1kB with optimal compression level as 5
     # with level ranging from 1 to 9 with 1 (fastest, least compression)
     # and 9 (slowest, most compression)
+    app.add_middleware(GZipMiddleware, minimum_size=1024, compresslevel=5)
 
 
 def init_ui_plugins(app: FastAPI) -> None:

Reply via email to