abhijeets25012-tech commented on code in PR #64726:
URL: https://github.com/apache/airflow/pull/64726#discussion_r3067631179
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -59,6 +59,16 @@ def create_app(enable_plugins: bool):
from airflow.providers.fab.auth_manager.fab_auth_manager import
FabAuthManager
flask_app = Flask(__name__)
+
+ @flask_app.after_request
+ def remove_duplicate_date_header(response):
+ date_headers = response.headers.getlist("Date")
+
+ if len(date_headers) > 1:
+ # Keep only the first one (typically from Uvicorn)
+ response.headers.set("Date", date_headers[0])
Review Comment:
Good catch — Flask response headers don’t include headers added later by
Uvicorn, so deduplication here wouldn’t prevent duplicates.
Updated the implementation to remove the Date header from the Flask response
so only the server emits it.
--
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]