Skip to content

Commit

Permalink
refactor: use HTTResponse.headers instead deprecated `HTTPResponse.…
Browse files Browse the repository at this point in the history
…getheaders()` (#534)
  • Loading branch information
bednar authored Nov 25, 2022
1 parent fc6f2d9 commit fcee5b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Bug Fixes
1. [#526](https://github.com/influxdata/influxdb-client-python/pull/526): Creating client instance from static configuration
1. [#531](https://github.com/influxdata/influxdb-client-python/pull/531): HTTP request return type for Management API [async/await]
1. [#534](https://github.com/influxdata/influxdb-client-python/pull/534): Use `HTTResponse.headers` to clear deprecation warning [urllib3]

### CI
1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds
Expand Down
2 changes: 1 addition & 1 deletion influxdb_client/_sync/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, resp):

def getheaders(self):
"""Return a dictionary of the response headers."""
return self.urllib3_response.getheaders()
return self.urllib3_response.headers

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

0 comments on commit fcee5b2

Please sign in to comment.