gchq / gaffer-tools

gaffer-tools is deprecated. Use https://github.com/gchq/gafferpy instead
Apache License 2.0
50 stars 29 forks source link

Session headers are now updated instead of overwritten #902

Closed t92549 closed 3 years ago

t92549 commented 3 years ago

When a user provides headers, these will be added to the session default headers instead of overwriting them: {'User-Agent': 'python-requests/2.25.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}.

This is because the user agent information may be useful. However, if a user doesn't want to send it they can still easily not by setting conn._session.headers = None.