Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcee5b2

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

File tree

2 files changed

+2
-1
lines changed
Filter options

2 files changed

+2
-1
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines 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

Copy file name to clipboardExpand all lines: influxdb_client/_sync/rest.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.