Fix DeprecationWarning raised by urllib3 1.26.13 (#246)

* Fix DeprecationWarning raised by urllib3 1.26.13

urllib3 has started to emit a DeprecationWarning whenever
HTTPResponse.getheaders() is called since version 1.26.13.

This changes the one place where this is done to instead use
HTTPResponse.headers instead, which is the recommend way of retrieving
the headers going forwards.

Signed-off-by: Jeppe Fihl-Pearson <[email protected]>

* Add CHANGELOG entry

Signed-off-by: Jeppe Fihl-Pearson <[email protected]>

Signed-off-by: Jeppe Fihl-Pearson <[email protected]>
This commit is contained in:
Jeppe Fihl-Pearson
2022-12-01 11:26:24 -08:00
committed by GitHub
parent b6b35f4666
commit 4c4091b12c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Removed
### Fixed
- Fixed DeprecationWarning emitted from urllib3 1.26.13+ ([#246](https://github.com/opensearch-project/opensearch-py/pull/246))
### Security