xshirax opened a new issue, #45730:
URL: https://github.com/apache/arrow/issues/45730

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   hey i want to add additional information to the existing user-agent header 
in my http request.
   
   i tried something like that:
   
   ```python
   
   import pyarrow.flight as flight
   
   class CustomClientMiddlewareFactory(flight.ClientMiddlewareFactory):
       """Middleware Factory to create middleware instances."""
       
       def start_call(self, info):
           return CustomClientMiddleware()
   
   class CustomClientMiddleware(flight.ClientMiddleware):
       """Client Middleware to modify outgoing headers."""
   
       def sending_headers(self):
           return {
               "user-agent" :"CustomFlightClient/1.0"
           }
   
   ```
   
   but it did not work, the user-agent header got change in the way to the 
server.
   it does work to add custom headers, but what i need is to modify the 
existing one.
   is it possible?
   
   ### Component(s)
   
   Python, FlightRPC


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to