ory / sdk

The place where ORY's SDKs are being auto-generated
Apache License 2.0
141 stars 85 forks source link

fix: use headers instead of deprecated getheaders() in urllib3 (Python SDK) #308

Closed andreagrandi closed 6 months ago

andreagrandi commented 10 months ago

In urllib3 the use of getheaders() method is deprecated:

DeprecationWarning: HTTPResponse.getheaders() is deprecated and will be removed in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.

Calls to self.urllib3_response.getheaders() should be replaced with self.urllib3_response.headers to fix this warning.

This pull request fixes the usage of getheaders() by removing the usage of the deprecated method.

Related Issue or Design Document

See the above description for the issue explaination.

Checklist

Further comments

None

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

aeneasr commented 6 months ago

Unfortunately, these are auto-generated files and these changes won't have an effect