DeprecationWarning in api_client and rest: `getheader` and `getheaders`
Hi dear Xero team,
We are receiving the following warning from your codebase:
DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.6.0.
Instead access HTTPResponse.headers directly.
I have noticed the usage in files:
rest.py:48: return self.urllib3_response.getheaders()rest.py:52: return self.urllib3_response.getheader(name, default)api_client/__init__.py:221: return (return_data, response_data.status, response_data.getheaders())api_client/__init__.py:604: content_disposition = response.getheader("Content-Disposition")exceptions/__init__.py:38: return self.http_resp.getheaders() if self.http_resp else None
For being able to upgrade urllib3 it is very important to keep the codebase up-to-date. Could you please fix the issue.
Best regards, Sergei
PETOSS-791
Thanks for raising an issue, a ticket has been created to track your request
How to see the progress? Any updates here?
urllib3 v2.5.0 has vulnerability that's fixed upgrading to 2.6.0
Unfortunately, this breaks xero-python functionality because of using methods in question.
any progress? this breaks xero-python functionality and blocks to a urllib3 version with vulnerabilities