windro-xdd opened a new pull request, #64688:
URL: https://github.com/apache/airflow/pull/64688

   Fix duplicate Date headers in HTTP responses from the API server.
   
   ## Summary
   
   When Airflow runs the API server with Flask WSGI middleware (for auth 
plugins), responses contain duplicate `Date` headers - one from uvicorn and one 
from Flask. This fix disables uvicorn's Date header generation via 
`date_header=False`, letting Flask handle it exclusively.
   
   closes: #64678
   
   ## Changes
   
   - Added `date_header=False` to uvicorn configuration in both standalone mode 
(`api_server_command.py`) and gunicorn worker mode (`gunicorn_app.py`)
   - Updated existing tests to expect the new configuration
   - Added newsfragment for the bugfix
   
   ## Testing
   
   - Unit tests pass with the updated configuration
   - The fix follows uvicorn's documented configuration option for disabling 
Date headers
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — OpenX (Claude Opus 4.5)
   
   Generated-by: OpenX (Claude Opus 4.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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]

Reply via email to