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 1ec64b7

Browse filesBrowse files
refactor: use HTTResponse.headers instead deprecated HTTPResponse.getheader() (influxdata#601)
1 parent a804c51 commit 1ec64b7
Copy full SHA for 1ec64b7

File tree

2 files changed

+4
-1
lines changed
Filter options

2 files changed

+4
-1
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.38.0 [unreleased]
22

3+
### Bug Fixes
4+
1. [#601](https://github.com/influxdata/influxdb-client-python/pull/601): Use HTTResponse.headers to clear deprecation warning [urllib3]
5+
36
### Documentation
47
1. [#566](https://github.com/influxdata/influxdb-client-python/pull/566): Fix Sphinx documentation build and add support `.readthedocs.yml` V2 configuration file
58

‎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
@@ -47,7 +47,7 @@ def getheaders(self):
4747

4848
def getheader(self, name, default=None):
4949
"""Return a given response header."""
50-
return self.urllib3_response.getheader(name, default)
50+
return self.urllib3_response.headers.get(name, default)
5151

5252

5353
class RESTClientObject(object):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.