abhijeets25012-tech opened a new pull request, #64726:
URL: https://github.com/apache/airflow/pull/64726

   ### What this PR does
   This PR fixes an issue where duplicate `Date` headers appear in API 
responses when using Flask alongside Uvicorn.
   
   Uvicorn already sets the `Date` header, and Flask adds another one during 
response processing, resulting in duplicate headers.
   
   ### How this is fixed
   An `after_request` hook is added to the Flask app to remove any existing 
`Date` headers before returning the response.
   
   ### Why this approach
   - Keeps behavior consistent regardless of server configuration
   - Avoids modifying Uvicorn settings globally
   - Ensures compatibility with existing Flask middleware
   
   ### Scope
   - Affects only Flask WSGI response handling
   - No impact on other components
   
   ### Testing
   - Verified that responses no longer contain duplicate `Date` headers
   


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