8000 refactor: use `HTTResponse.headers` instead deprecated `HTTPResponse.… · finaln1/influxdb-client-python@fcee5b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcee5b2

Browse files
authored
refactor: use HTTResponse.headers instead deprecated HTTPResponse.getheaders() (influxdata#534)
1 parent fc6f2d9 commit fcee5b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
### Bug Fixes
77
1. [#526](https://github.com/influxdata/influxdb-client-python/pull/526): Creating client instance from static configuration
88
1. [#531](https://github.com/influxdata/influxdb-client-python/pull/531): HTTP request return type for Management API [async/await]
9+
1. [#534](https://github.com/influxdata/influxdb-client-python/pull/534): Use `HTTResponse.headers` to clear deprecation warning [urllib3]
910

1011
### CI
1112
1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds

influxdb_client/_sync/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, resp):
4343

4444
def getheaders(self):
4545
"""Return a dictionary of the response headers."""
46-
return self.urllib3_response.getheaders()
46+
return self.urllib3_response.headers
4747

4848
def getheader(self, name, default=None):
4949
"""Return a given response header."""

0 commit comments

Comments
 (0)
0