We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb7f6af commit 552da84Copy full SHA for 552da84
providers/fab/src/airflow/providers/fab/www/app.py
@@ -59,6 +59,14 @@ def create_app(enable_plugins: bool):
59
from airflow.providers.fab.auth_manager.fab_auth_manager import FabAuthManager
60
61
flask_app = Flask(__name__)
62
+
63
+ @flask_app.after_request
64
+ def remove_duplicate_date_header(response):
65
+ # Remove the application-level Date header so the ASGI/WSGI server
66
+ # can emit a single Date header for the final response.
67
+ response.headers.pop("Date", None)
68
+ return response
69
70
flask_app.secret_key = conf.get("api", "SECRET_KEY")
71
flask_app.config["SQLALCHEMY_DATABASE_URI"] = conf.get("database", "SQL_ALCHEMY_CONN")
72
flask_app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
0 commit comments